diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2017-09-29 15:33:10 +0200 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2017-09-29 17:12:09 +0200 |
| commit | 31fdcb49312b01796846bc6269cb503a7f9b74d4 (patch) | |
| tree | 23b7cfe04be1a090c50b135de16ae44337cfd720 /addons/web/static/src/js/libs/jquery.js | |
| parent | d2497a0e33d8a97c9d675fa3380e0f6d7c8c16f2 (diff) | |
[FIX] web: max one wiggle per readonly click
The wiggling effect of the edit button when clicking on the form
(hinting that to change the form you should edit it) could happen
several times.
With 85d1e76 there was also a visual deffect on the Edit button when the
wiggle happened several times, because bounce are stacked but the CSS
class was removed after the first bounce was removed.
Diffstat (limited to 'addons/web/static/src/js/libs/jquery.js')
| -rw-r--r-- | addons/web/static/src/js/libs/jquery.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/addons/web/static/src/js/libs/jquery.js b/addons/web/static/src/js/libs/jquery.js index 30afa4db274..0b12b4fed0d 100644 --- a/addons/web/static/src/js/libs/jquery.js +++ b/addons/web/static/src/js/libs/jquery.js @@ -89,12 +89,8 @@ $.fn.extend({ */ odooBounce: function () { return this.each(function () { - var $elem = $(this); - $elem - .css('box-sizing', 'content-box') - .effect('bounce', {distance: 18, times: 5}, 250, function () { - $elem.css('box-sizing', ''); - }); + $(this).css('box-sizing', 'content-box') + .effect('bounce', {distance: 18, times: 5}, 250); }); }, /** |
