[FIX] website: properly duplicate FAQ Roller questions

/!\ This is a backport from saas-10

When duplicating a question in the FAQ Roller snippet, the cloned
question was opening the original answer instead of its own answer.
This commit is contained in:
qsm-odoo
2016-08-04 15:03:46 +02:00
parent 48fa0a5f6c
commit 156a089a11
@@ -729,7 +729,9 @@ options.registry.collapse = options.Class.extend(preventParentEmpty).extend({
this.create_ids(this.$target);
},
on_clone: function ($clone) {
this._super();
this._super.apply(this, arguments);
$clone.find('[data-toggle="collapse"]').removeAttr('data-target').removeData('target');
$clone.find('.panel-collapse').removeAttr('id');
this.create_ids($clone);
},
on_move: function () {