diff options
| author | Pratima Gupta <pgu@odoo.com> | 2019-07-16 12:03:11 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-07-17 15:53:31 +0000 |
| commit | b492bde6a121be1c15ed90ce0827fcfd72a12f5c (patch) | |
| tree | 6c030035b8e0f5a743806c809d1ef7ef244e25be /addons/website/static/src/js/content/snippets.animation.js | |
| parent | 4d942852c82414bd986112230a3e8e2d183b5c59 (diff) | |
[IMP] account, portal, web, website: move chatter below invoice
No more modal because it's not visible and less handy. Use same behavior as
sales order portal.
Adapt the invoice style to properly adapt and align with the chatter block.
Part of task-37264
closes odoo/odoo#34360
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: Pratima Gupta <pgu@odoo.com>
Co-authored-by: Sébastien Theys <seb@odoo.com>
Diffstat (limited to 'addons/website/static/src/js/content/snippets.animation.js')
| -rw-r--r-- | addons/website/static/src/js/content/snippets.animation.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website/static/src/js/content/snippets.animation.js b/addons/website/static/src/js/content/snippets.animation.js index ab7f4218a5b..681f6719354 100644 --- a/addons/website/static/src/js/content/snippets.animation.js +++ b/addons/website/static/src/js/content/snippets.animation.js @@ -10,6 +10,7 @@ var core = require('web.core'); var mixins = require('web.mixins'); var utils = require('web.utils'); var publicWidget = require('web.public.widget'); +var utils = require('web.utils'); var qweb = core.qweb; @@ -1018,7 +1019,7 @@ registry.anchorSlide = publicWidget.Widget.extend({ return; } var hash = this.$target[0].hash; - if (!/^#[\w-]+$/.test(hash)) { + if (!utils.isValidAnchor(hash)) { return; } var $anchor = $(hash); |
