summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/css/base.sass3
-rw-r--r--addons/web/static/src/js/view_form.js7
-rw-r--r--addons/web/static/src/xml/base.xml4
3 files changed, 7 insertions, 7 deletions
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index fd0f4e6b4aa..949befdef77 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -435,9 +435,6 @@ $sheet-max-width: 860px
text-decoration: none
.oe_star_on
color: gold
- .oe_bounce
- -moz-animation: bounce .40s linear
- -webkit-animation: bounce .40s linear
// }}}
// Tags (for many2many tags, among others) {{{
.oe_tag
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index c2dac62366b..c3f941305d5 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -155,15 +155,16 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
]);
}
+ this.has_been_loaded.resolve();
+
// Add bounce effect on button 'Edit' when click on readonly page view.
- this.$element.find(".oe_form_field, .oe_form_group_cell").on('click', function (e) {
+ this.$element.find(".oe_form_field,label").on('click', function (e) {
if(self.get("actual_mode") == "view") {
var $button = self.options.$buttons.find(".oe_form_button_edit");
- $button.wrap('<div>').css('margin-right','4px').addClass('oe_left oe_bounce');
+ $button.effect('bounce', {distance: 18, times: 7}, 200)
}
});
- this.has_been_loaded.resolve();
return $.when();
},
extract_qweb_template: function(fvg) {
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index e82659aaa87..4e3ffa0acb4 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -708,7 +708,9 @@
<div t-name="FormView.buttons" class="oe_form_buttons">
<t t-if="widget.options.action_buttons !== false">
<span class="oe_form_buttons_view">
- <button type="button" class="oe_button oe_form_button_edit">Edit</button>
+ <div style="display: inline-block;"> <!-- required for the bounce effect on button -->
+ <button type="button" class="oe_button oe_form_button_edit">Edit</button>
+ </div>
<button type="button" class="oe_button oe_form_button_create">Create</button>
</span>
<span class="oe_form_buttons_edit">