@@ -180,6 +180,14 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
|
||||
instance.web.bus.trigger('click', e);
|
||||
}
|
||||
});
|
||||
//bounce effect on red button when click on statusbar.
|
||||
this.$el.find(".oe_form_field_status:not(.oe_form_status_clickable)").on('click', function (e) {
|
||||
if((self.get("actual_mode") == "view")) {
|
||||
var $button = self.$el.find(".oe_highlight:not(.oe_form_invisible)").css({'float':'left','clear':'none'});
|
||||
$button.effect('bounce', {distance:18, times: 5}, 150);
|
||||
e.stopPropagation();
|
||||
}
|
||||
});
|
||||
|
||||
return $.when();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user