[IMP] bounce effect page

bzr revid: fp@openerp.com-20120916201957-uy358t6zwpzmdwgf
This commit is contained in:
Fabien Pinckaers
2012-09-16 22:19:57 +02:00
+2 -1
View File
@@ -159,10 +159,11 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
this.has_been_loaded.resolve();
// Add bounce effect on button 'Edit' when click on readonly page view.
this.$el.find(".oe_form_field,label").on('click', function (e) {
this.$el.find(".oe_form_group_row,.oe_form_field,label").on('click', function (e) {
if(self.get("actual_mode") == "view") {
var $button = self.options.$buttons.find(".oe_form_button_edit");
$button.effect('bounce', {distance: 18, times: 5}, 150)
e.stopPropagation();
}
});