Revision 846f5913 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/dropzone.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/dropzone.js | ||
---|---|---|
439 | 439 |
dictResponseError: "Server responded with {{statusCode}} code.", |
440 | 440 |
dictCancelUpload: "Cancel upload", |
441 | 441 |
dictCancelUploadConfirmation: "Are you sure you want to cancel this upload?", |
442 |
dictRemoveFile: "snf- Remove file",
|
|
442 |
dictRemoveFile: "Remove file", |
|
443 | 443 |
dictRemoveFileConfirmation: null, |
444 | 444 |
dictMaxFilesExceeded: "You can only upload {{maxFiles}} files.", |
445 | 445 |
accept: function(file, done) { |
... | ... | |
608 | 608 |
}, |
609 | 609 |
completemultiple: noop, |
610 | 610 |
maxfilesexceeded: noop, |
611 |
previewTemplate: "<div class=\"dz-preview dz-file-preview\">\n <div class=\"dz-details\">\n <div class=\"dz-filename\"><span data-dz-name></span></div>\n <div class=\"dz-size\" data-dz-size></div>\n <img data-dz-thumbnail />\n </div>\n <div class=\"dz-progress\"><span class=\"dz-upload\" data-dz-uploadprogress></span></div>\n <div class=\"dz-success-mark\"><span>✔</span></div>\n <div class=\"dz-error-mark\"><span>✘</span></div>\n <div class=\"dz-error-message\"><span data-dz-errormessage></span></div>\n</div>"
|
|
611 |
previewTemplate: "<li class=\"dz-preview dz-file-preview\">\n <div class=\"dz-filename name-col txt\"><span data-dz-name></span></div>\n <div class=\"dz-size size-col\" data-dz-size></div>\n<div class=\"progress-bar \">\n<div class=\"progress-wrap\">\n<div class=\"progress dz-progress\"><span span class=\"meter dz-upload\" data-dz-uploadprogress></span></div></div></div>\n<div class=\"dz-success-mark\"><span>✔</span></div>\n <div class=\"dz-error-mark\"><span>✘</span></div>\n <div class=\"dz-error-message\"><span data-dz-errormessage></span></div>\n</li>"
|
|
612 | 612 |
}; |
613 | 613 |
|
614 | 614 |
extend = function() { |
... | ... | |
989 | 989 |
size = size * 10; |
990 | 990 |
string = "b"; |
991 | 991 |
} |
992 |
return "<strong>" + (Math.round(size) / 10) + "</strong> " + string;
|
|
992 |
return "" + (Math.round(size) / 10) + "" + string;
|
|
993 | 993 |
}; |
994 | 994 |
|
995 | 995 |
Dropzone.prototype._updateMaxFilesReachedClass = function() { |
Also available in: Unified diff