diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-03-15 14:25:57 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-07-27 12:36:54 +0200 |
| commit | 59237ea81988bdcd0cc746422a7c94bf2eadaaa2 (patch) | |
| tree | 0cc96ceb526949a9b7694ca2c64c4db8a9e9409d /addons/website/static/src/js/editor | |
| parent | ed1b18f10348244ce26b8b27edbd59d91cee7772 (diff) | |
[REF] *: BS4, review panel and well structure
Panels and wells were dropped and replaced by the "Card" component.
Diffstat (limited to 'addons/website/static/src/js/editor')
| -rw-r--r-- | addons/website/static/src/js/editor/snippets.options.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index c71afc1085f..14f1b6f0a4f 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -758,7 +758,7 @@ options.registry.collapse = options.Class.extend({ */ onClone: function () { this.$target.find('[data-toggle="collapse"]').removeAttr('data-target').removeData('target'); - this.$target.find('.panel-collapse').removeAttr('id'); + this.$target.find('.collapse').removeAttr('id'); this._createIDs(); }, /** @@ -766,9 +766,9 @@ options.registry.collapse = options.Class.extend({ */ onMove: function () { this._createIDs(); - var $panel = this.$target.find('.panel-collapse').removeData('bs.collapse'); + var $panel = this.$target.find('.collapse').removeData('bs.collapse'); if ($panel.attr('aria-expanded') === 'true') { - $panel.closest('.panel-group').find('.panel-collapse[aria-expanded="true"]') + $panel.closest('.accordion').find('.collapse[aria-expanded="true"]') .filter(function () {return this !== $panel[0];}) .collapse('hide') .one('hidden.bs.collapse', function () { @@ -791,7 +791,7 @@ options.registry.collapse = options.Class.extend({ var $tab = this.$target.find('[data-toggle="collapse"]'); // link to the parent group - var $tablist = this.$target.closest('.panel-group'); + var $tablist = this.$target.closest('.accordion'); var tablist_id = $tablist.attr('id'); if (!tablist_id) { tablist_id = 'myCollapse' + time; |
