diff options
| author | Anand Patel (OpenERP) <pan@tinyerp.com> | 2012-06-29 12:52:48 +0530 |
|---|---|---|
| committer | Anand Patel (OpenERP) <pan@tinyerp.com> | 2012-06-29 12:52:48 +0530 |
| commit | e748c3d4cf18eb3e8defde43f46ee3eeeff0404c (patch) | |
| tree | fc6d307748d8acc3063c07eafef26b08ad044f46 /addons/web/static/src/js/view_form.js | |
| parent | 13458db46f61545b63c11a60137ab2e9d8f27d9c (diff) | |
improoved code for [added a bounce effect when On non editable page view, if click on the content of a field, bounce the Edit button]
bzr revid: pan@tinyerp.com-20120629072248-kb0vfjjo707l8vaj
Diffstat (limited to 'addons/web/static/src/js/view_form.js')
| -rw-r--r-- | addons/web/static/src/js/view_form.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 09c8ac67dfc..65f825c6cf5 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -582,8 +582,11 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM self.set({mode: "view"}); }); }, - on_invalidclick: function() { - this.$element.find(".oe_form_field").click(function () { + on_invalidclick: function() { + var div = $("<div />", {id:"bounce"}); + this.$element.find(".oe_form_field").click(function () { + $(".oe_form_button_edit").wrap(div); + $("#bounce").css({"float":"left","margin-right":"4px"}); $(".oe_form_button_edit").effect("bounce", { times:3}, 500); }); }, |
