small modifications to equalize the scripts

This commit is contained in:
Jakobus Schürz 2023-03-13 14:02:30 +01:00
parent be2afac60d
commit a6a0507a89
3 changed files with 1 additions and 9 deletions

View file

@ -105,8 +105,6 @@
previewsContainer: '#dz-previewsCompose',
preventDuplicates: true,
clickable: true,
thumbnailWidth: 100,
thumbnailHeight: 100,
url: "/media/photo/upload?response=url&album=",
accept: function(file, done) {
done();

View file

@ -75,8 +75,6 @@
previewsContainer: '#dz-preview-{{$id}}',
preventDuplicates: true,
clickable: true,
thumbnailWidth: 100,
thumbnailHeight: 100,
url: "/media/photo/upload?response=url&album=",
accept: function(file, done) {
done();

View file

@ -189,11 +189,7 @@ can load different content into the jot moadl (e.g. the item edit jot)
previewsContainer: '#dz-preview-jot',
url: "/media/photo/upload?response=url&album=",
accept: function(file, done) {
if (file.name == "justinbieber.jpg") {
done("Naha, you don't.");
} else {
done();
}
},
init: function() {
this.on("success", function(file, serverResponse) {