Improve code for bounce effect in statusbar
bzr revid: ggh@tinyerp.com-20130131090317-h9ce44qob4zohbdj
This commit is contained in:
@@ -190,10 +190,6 @@
|
||||
.openerp .oe_bounce_container {
|
||||
display: inline-block;
|
||||
}
|
||||
.openerp .oe_bounce_highlight_btn {
|
||||
margin: auto;
|
||||
display: inline-block;
|
||||
}
|
||||
.openerp .text-tag .text-button {
|
||||
height: auto !important;
|
||||
min-height: 16px;
|
||||
|
||||
@@ -248,9 +248,6 @@ $sheet-padding: 16px
|
||||
.oe_bounce_container
|
||||
display: inline-block
|
||||
|
||||
.oe_bounce_highlight_btn
|
||||
margin: auto
|
||||
display: inline-block
|
||||
// Bug lp:1051746
|
||||
.text-tag .text-button
|
||||
height: auto !important
|
||||
|
||||
@@ -212,10 +212,9 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
|
||||
}
|
||||
});
|
||||
//bounce effect on red button when click on statusbar.
|
||||
self.$el.find(".oe_highlight").wrap('<div class="oe_bounce_highlight_btn"></div>');
|
||||
this.$el.on('click', '.oe_form_field_status:not(.oe_form_status_clickable)', function (e) {
|
||||
if((self.get("actual_mode") == "view")) {
|
||||
var $button = self.$el.find(".oe_highlight:not(.oe_form_invisible)");
|
||||
var $button = self.$el.find(".oe_highlight:not(.oe_form_invisible)").css({'float':'left','margin-left':'0px','white-space':'nowrap'});
|
||||
$button.openerpBounce();
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user