Skip to content

Commit

Permalink
Update itulFramework.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bmooreitul authored Mar 17, 2024
1 parent ca43feb commit fd4a66f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions itulFramework.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ function init_fill_height(trigger = true){
var label = $('<label class="btn btn-link text-decoration-none">Browse files</label>');
var inputElement = $('<input type="file"'+(options.multiple ? ' multiple ' : ' ')+'name="'+inputName+'" '+(options.accept != null ? 'accept="'+options.accept+'"' : '')+' class="ajax_file_upload d-none" data-callback="'+functionName+'">');
var wrapper = $('<div class="text-center drag-and-drop-file-upload border" data-multifile="'+(options.multiple ? 'true' : 'false')+'" data-display-progress="'+(options.displayProgress.enabled === true ? 'true' : (options.displayProgress.enabled !== false ? options.displayProgress.enabled : 'false'))+'" data-hide-progress-on-finish="'+(options.displayProgress.onFinishHide ? 'true' : 'false')+'" data-callback="'+functionName+'"></div>');
$(wrapper).hide();

if(options.multiple) $(inputElement).attr('data-multifile', 'true');

Expand Down Expand Up @@ -579,6 +580,9 @@ function init_fill_height(trigger = true){
if(options.hide){
slickDropzoneInstance.hide();
}
else{
slickDropzoneInstance.show();
}
$(that).trigger('it.sdz.initialized', [{options: options}]);
}, 1);

Expand Down

0 comments on commit fd4a66f

Please sign in to comment.