diff --git a/dist/main.js b/dist/main.js
old mode 100644
new mode 100755
index 21ffdb2..6fe25b7
Binary files a/dist/main.js and b/dist/main.js differ
diff --git a/src/scripts/contextMenu.js b/src/scripts/contextMenu.js
index 255f9ea..305456f 100644
--- a/src/scripts/contextMenu.js
+++ b/src/scripts/contextMenu.js
@@ -1,6 +1,6 @@
/**
- * @description This module is used for the context menu.
- * @copyright 2015 by Tobias Reich
+ * @description This module is used for the context menu.
+ * @copyright 2015 by Tobias Reich
*/
contextMenu = {}
diff --git a/src/scripts/header.js b/src/scripts/header.js
index 4ff9d63..e411b30 100644
--- a/src/scripts/header.js
+++ b/src/scripts/header.js
@@ -1,6 +1,6 @@
/**
- * @description This module takes care of the header.
- * @copyright 2015 by Tobias Reich
+ * @description This module takes care of the header.
+ * @copyright 2015 by Tobias Reich
*/
header = {
diff --git a/src/scripts/loadingBar.js b/src/scripts/loadingBar.js
index 5453996..83d42d5 100755
--- a/src/scripts/loadingBar.js
+++ b/src/scripts/loadingBar.js
@@ -1,19 +1,19 @@
/**
- * @description This module is used to show and hide the loading bar.
- * @copyright 2015 by Tobias Reich
+ * @description This module is used to show and hide the loading bar.
+ * @copyright 2015 by Tobias Reich
*/
loadingBar = {
- status: null,
- _dom: $('#loading')
+ status : null,
+ _dom : $('#loading')
}
loadingBar.dom = function(selector) {
- if (selector===undefined||selector===null||selector==='') return loadingBar._dom;
- return loadingBar._dom.find(selector);
+ if (selector==null || selector==='') return loadingBar._dom
+ return loadingBar._dom.find(selector)
}
@@ -22,56 +22,52 @@ loadingBar.show = function(status, errorText) {
if (status==='error') {
// Set status
- loadingBar.status = 'error';
+ loadingBar.status = 'error'
// Parse text
- if (errorText) errorText = errorText.replace('
', '');
- if (!errorText) errorText = 'Whoops, it looks like something went wrong. Please reload the site and try again!';
+ if (errorText) errorText = errorText.replace('
', '')
+ if (!errorText) errorText = 'Whoops, it looks like something went wrong. Please reload the site and try again!'
// Move header down
- if (visible.header()) header.dom().addClass('error');
+ if (visible.header()) header.dom().addClass('error')
// Modify loading
loadingBar.dom()
.removeClass('loading uploading error')
- .html('