[FIX] website: snippet: the slide move he is typing (quote slider)

bzr revid: chm@openerp.com-20140218163759-ojyto7j8r34nh2we
This commit is contained in:
Christophe Matthieu
2014-02-18 17:37:59 +01:00
parent 16953b43bb
commit 3226a16b99
@@ -1281,8 +1281,6 @@
this.$target.attr('contentEditable', 'false');
this.$target.find('.oe_structure, .content>.row').attr('contentEditable', 'true');
this.$target.carousel('pause');
},
clean_for_save: function () {
this._super();
@@ -1291,14 +1289,6 @@
this.$target.find(".item:first").addClass("active");
}
},
onFocus: function () {
this._super();
this.$target.carousel('pause');
},
onBlur: function () {
this._super();
this.$target.carousel('cycle');
},
start : function () {
var self = this;
this._super();
@@ -1309,6 +1299,7 @@
this.$editor.find(".js_add").on('click', function () {self.on_add_slide(); return false;});
this.$editor.find(".js_remove").on('click', function () {self.on_remove_slide(); return false;});
this.$target.carousel('pause');
this.rebind_event();
},
on_add_slide: function () {