Code cleanup

This commit is contained in:
Tobias Reich 2014-10-21 14:04:14 +02:00
parent c25a7777e4
commit 01ec595e35

View File

@ -3,18 +3,18 @@
* @copyright 2014 by Tobias Reich
*/
upload = {
upload = {}
show: function(title, files, callback) {
upload.show = function(title, files, callback) {
upload.close(true);
$("body").append(build.uploadModal(title, files));
if (callback!==null&&callback!==undefined) callback();
},
}
notify: function(title, text) {
upload.notify = function(title, text) {
var popup;
@ -29,9 +29,9 @@ upload = {
popup.show();
}
},
}
start: {
upload.start = {
local: function(files) {
@ -389,9 +389,9 @@ upload = {
}
},
}
close: function(force) {
upload.close = function(force) {
if (force===true) {
$(".upload_overlay").remove();
@ -401,5 +401,3 @@ upload = {
}
}
};