});
});
+
+ $(document).on('change', '.bunchmultiple', function () {
+ $this.initSelect2();
+ })
},
getCurrentFormUID: function () {
container.append(form);
this.linkeditor.initTooltips();
- this.initSelect2();
this.initSpectrum();
$(".bunchmultiple").bunchmultiple();
+ this.initSelect2();
if ($(link).is('.new')) {
initSelect2: function () {
// trigger select2 for each untriggered select2 box
$('#linkeditor-panel-form .select2_from_array:not(.init)').each(function (i, obj) {
+ if($(this).closest('.item.sample').length>0){
+ return;
+ }
+
var options = {
theme: "bootstrap",
};