[IMP]bounce effect on red button
bzr revid: pna@tinyerp.com-20120921093747-lf6j8khl69dvgadm
This commit is contained in:
parent
ba6f2f8171
commit
778c59acff
|
@ -167,6 +167,14 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
|
||||||
instance.web.bus.trigger('click', e);
|
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) {
|
||||||
|
var $button = self.$el.find(".oe_highlight:not(.oe_form_invisible)").css({'float':'left','clear':'none'});
|
||||||
|
if((self.get("actual_mode") == "view")) {
|
||||||
|
$button.effect('bounce', {distance:18, times: 5}, 150);
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return $.when();
|
return $.when();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue