[IMP] bounce effect on highlight button using statusbar

bzr revid: ggh@tinyerp.com-20130131053827-219jr1awgh4tr685
This commit is contained in:
ggh-openerp
2013-01-31 11:08:27 +05:30
parent cab1e94006
commit dac59ced48
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -190,6 +190,10 @@
.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,6 +248,9 @@ $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
+2 -1
View File
@@ -212,9 +212,10 @@ 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)").css({'float':'left','clear':'none'});
var $button = self.$el.find(".oe_highlight:not(.oe_form_invisible)");
$button.openerpBounce();
e.stopPropagation();
}