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 * @copyright 2014 by Tobias Reich
*/ */
upload = { upload = {}
show: function(title, files, callback) { upload.show = function(title, files, callback) {
upload.close(true); upload.close(true);
$("body").append(build.uploadModal(title, files)); $("body").append(build.uploadModal(title, files));
if (callback!==null&&callback!==undefined) callback(); if (callback!==null&&callback!==undefined) callback();
}, }
notify: function(title, text) { upload.notify = function(title, text) {
var popup; var popup;
@ -29,9 +29,9 @@ upload = {
popup.show(); popup.show();
} }
}, }
start: { upload.start = {
local: function(files) { local: function(files) {
@ -389,9 +389,9 @@ upload = {
} }
}, }
close: function(force) { upload.close = function(force) {
if (force===true) { if (force===true) {
$(".upload_overlay").remove(); $(".upload_overlay").remove();
@ -400,6 +400,4 @@ upload = {
setTimeout(function() { $(".upload_overlay").remove() }, 300); setTimeout(function() { $(".upload_overlay").remove() }, 300);
} }
} }
};