[IMP]Improved code for red_button bounce effecct on statusbar click
bzr revid: pan@tinyerp.com-20121023070206-a5xbxbyut3ytgrs5
This commit is contained in:
@@ -206,10 +206,10 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
|
||||
}
|
||||
});
|
||||
//bounce effect on red button when click on statusbar.
|
||||
this.on('load_record',this,function(){
|
||||
this.on('load_record',this,function(){
|
||||
var $button = self.$el.find(".oe_button.oe_form_button.oe_highlight:not(.oe_form_invisible)").css({'margin-left':'2px','float':'left','white-space':'nowrap'});
|
||||
self.$el.find(".oe_form_field_status:not(.oe_form_status_clickable)").on('click',function (e) {
|
||||
if(self.get("actual_mode") == "view") {
|
||||
var $button = $(".oe_button.oe_form_button.oe_highlight:not(.oe_form_invisible)").wrap("<span style='margin:0;float:left;white-space:nowrap'>");
|
||||
$button.effect('bounce', {distance:18, times: 5}, 150);
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user