From d4e44d17d82282b6d8581b8a7124e93951193a3d Mon Sep 17 00:00:00 2001 From: chrisala Date: Wed, 7 Feb 2024 13:16:29 +1100 Subject: [PATCH] Added a drop zone for photopoint images #3095 --- grails-app/assets/javascripts/forms-knockout-bindings.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/grails-app/assets/javascripts/forms-knockout-bindings.js b/grails-app/assets/javascripts/forms-knockout-bindings.js index 82107c3..47d93ed 100644 --- a/grails-app/assets/javascripts/forms-knockout-bindings.js +++ b/grails-app/assets/javascripts/forms-knockout-bindings.js @@ -62,12 +62,13 @@ var config = valueAccessor(); config = $.extend({}, config, defaultConfig); - + var dropzone = $(element); var target = config.target; // Expected to be a ko.observableArray $(element).fileupload({ url:config.url, autoUpload:true, - dataType:'json' + dataType:'json', + dropZone: dropzone }).on('fileuploadadd', function(e, data) { complete(false); progress(1);