small modifications to equalize the scripts
This commit is contained in:
parent
be2afac60d
commit
a6a0507a89
|
@ -105,8 +105,6 @@
|
||||||
previewsContainer: '#dz-previewsCompose',
|
previewsContainer: '#dz-previewsCompose',
|
||||||
preventDuplicates: true,
|
preventDuplicates: true,
|
||||||
clickable: true,
|
clickable: true,
|
||||||
thumbnailWidth: 100,
|
|
||||||
thumbnailHeight: 100,
|
|
||||||
url: "/media/photo/upload?response=url&album=",
|
url: "/media/photo/upload?response=url&album=",
|
||||||
accept: function(file, done) {
|
accept: function(file, done) {
|
||||||
done();
|
done();
|
||||||
|
|
|
@ -75,8 +75,6 @@
|
||||||
previewsContainer: '#dz-preview-{{$id}}',
|
previewsContainer: '#dz-preview-{{$id}}',
|
||||||
preventDuplicates: true,
|
preventDuplicates: true,
|
||||||
clickable: true,
|
clickable: true,
|
||||||
thumbnailWidth: 100,
|
|
||||||
thumbnailHeight: 100,
|
|
||||||
url: "/media/photo/upload?response=url&album=",
|
url: "/media/photo/upload?response=url&album=",
|
||||||
accept: function(file, done) {
|
accept: function(file, done) {
|
||||||
done();
|
done();
|
||||||
|
|
|
@ -189,11 +189,7 @@ can load different content into the jot moadl (e.g. the item edit jot)
|
||||||
previewsContainer: '#dz-preview-jot',
|
previewsContainer: '#dz-preview-jot',
|
||||||
url: "/media/photo/upload?response=url&album=",
|
url: "/media/photo/upload?response=url&album=",
|
||||||
accept: function(file, done) {
|
accept: function(file, done) {
|
||||||
if (file.name == "justinbieber.jpg") {
|
|
||||||
done("Naha, you don't.");
|
|
||||||
} else {
|
|
||||||
done();
|
done();
|
||||||
}
|
|
||||||
},
|
},
|
||||||
init: function() {
|
init: function() {
|
||||||
this.on("success", function(file, serverResponse) {
|
this.on("success", function(file, serverResponse) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user