Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Feb 20, 2025
1 parent 88008ef commit 8060cda
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions public/assets/backend/js/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1081,8 +1081,18 @@ App.editor.dropzone = function (elem,options,onSuccss,onError,onRemove) {
}
App.loader.defined(typeof ($.ui), 'jqueryui');
if(options.url){
var sep = options.url.indexOf('?')>=0?'&':'?';
options.url += sep+'client=dropzone';
if(typeof(options.url)=='function') {
var _url = options.url;
options.url = function(){
var url = _url();
var sep = url.indexOf('?')>=0?'&':'?';
url += sep+'client=dropzone';
return url;
};
}else{
var sep = options.url.indexOf('?')>=0?'&':'?';
options.url += sep+'client=dropzone';
}
}
var d = App.getJQueryObject(elem).dropzone($.extend({
paramName: "file", maxFilesize: 0.5, // MB
Expand Down
Loading

0 comments on commit 8060cda

Please # to comment.