[IMP] website snippet: improve visibility of drop zone
authorChristophe Matthieu <chm@openerp.com>
Wed, 16 Oct 2013 12:29:05 +0000 (14:29 +0200)
committerChristophe Matthieu <chm@openerp.com>
Wed, 16 Oct 2013 12:29:05 +0000 (14:29 +0200)
bzr revid: chm@openerp.com-20131016122905-w93f4vtamiqy79lo

1  2 
addons/website/static/src/css/editor.css
addons/website/static/src/css/editor.sass
addons/website/static/src/js/website.snippets.js
addons/website/views/snippets.xml

                  self.$target.carousel();
              });
  
--            this.$target.on('dblclick', '.item.active .carousel-image img', function (event) {
--                var $img = $(event.currentTarget);
--                var editor = new website.editor.ImageDialog();
--                editor.on('start', self, function (o) {o.url = $img.attr("src");});
--                editor.on('save', self, function (o) {$img.attr("src", o.url);});
--                editor.appendTo($('body'));
--            });
--
              this.rebind_event();
          },
          // rebind event to active carousel on edit mode
@@@ -78,7 -78,7 +78,7 @@@
                              </p>
                          </div>
                          <div class="carousel-image hidden-xs">
--                            <img src="/website/static/src/img/banner/banner_picture.png" alt="Banner OpenERP Image"/>
++                            <img src="/website/static/src/img/banner/banner_picture.png" contenteditable="true" alt="Banner OpenERP Image"/>
                          </div>
                      </div>
                  </div>