From: Vincent Vanwaelscappel Date: Tue, 26 Oct 2021 13:43:24 +0000 (+0200) Subject: wait #4831 @7 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3bf1af850ab0252ac3d73fd211b68e18ab6b0cef;p=cubist_cms-back.git wait #4831 @7 --- diff --git a/src/public/bunchmultiple/bunchmultiple.js b/src/public/bunchmultiple/bunchmultiple.js index 5c187ff..267afac 100644 --- a/src/public/bunchmultiple/bunchmultiple.js +++ b/src/public/bunchmultiple/bunchmultiple.js @@ -57,7 +57,8 @@ return true; }); - this.element.on('change', '.bunchmultiple', function () { + $(this.element).on('change', '.bunchmultiple .hiddenfield', function () { + console.log('change from above'); $this.update(); return true; }); @@ -151,16 +152,16 @@ setTimeout(function () { $this.updateAndChange(); }, 250); - $this.updateAndChange(); + this.updateAndChange(); }, updateAndChange: function () { + console.log('updateAndChange',this); this.update(); - $(this).trigger('change'); + $(this).find('.hiddenfield').trigger('change'); }, initItem: function (values) { - console.log('initItem', values); var $this = this; var collapsed = true; var isNew = false;