mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Improved Javascript coding style
This commit is contained in:
@ -31,18 +31,15 @@ App.Controls.FileDropper = function(
|
||||
$dropDiv.addClass('active');
|
||||
});
|
||||
|
||||
function getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
function addFiles(files) {
|
||||
$dropDiv.removeClass('active');
|
||||
if (!allowMultiple && files.length > 1) {
|
||||
alert('Cannot select multiple files.');
|
||||
window.alert('Cannot select multiple files.');
|
||||
return;
|
||||
}
|
||||
onChange(files);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
App.DI.register('fileDropper', App.Controls.FileDropper);
|
||||
|
Reference in New Issue
Block a user