Improve code for bounce effect in statusbar

bzr revid: ggh@tinyerp.com-20130131090317-h9ce44qob4zohbdj
This commit is contained in:
ggh-openerp
2013-01-31 14:33:17 +05:30
parent dac59ced48
commit 081f3ee483
3 changed files with 1 additions and 9 deletions
-4
View File
@@ -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;
-3
View File
@@ -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
+1 -2
View File
@@ -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();
}