Skip to content

Commit

Permalink
Added a drop zone for photopoint images #3095
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Feb 7, 2024
1 parent a9af225 commit d4e44d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions grails-app/assets/javascripts/forms-knockout-bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d4e44d1

Please sign in to comment.