summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorggh-openerp <ggh@tinyerp.com>2013-01-31 14:33:17 +0530
committerggh-openerp <ggh@tinyerp.com>2013-01-31 14:33:17 +0530
commit081f3ee483bc3d32b2ab676e89b2eb06a6ec265c (patch)
treeb875d86d88c92c6f52ff1ae05d2b4c566f6e4d41 /addons/web/static/src
parentdac59ced4805bdebe5cf844f0416920cc7703922 (diff)
Improve code for bounce effect in statusbar
bzr revid: ggh@tinyerp.com-20130131090317-h9ce44qob4zohbdj
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/css/base.css4
-rw-r--r--addons/web/static/src/css/base.sass3
-rw-r--r--addons/web/static/src/js/view_form.js3
3 files changed, 1 insertions, 9 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index 123742d5b0b..6cfee50d6a4 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -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;
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index 223a476d238..b4665808caf 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -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
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index b19eab03b75..6889e2bba64 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -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();
}