diff --git a/src/legacy/dashboard.js b/src/legacy/dashboard.js deleted file mode 100644 index 08c5e8330b..0000000000 --- a/src/legacy/dashboard.js +++ /dev/null @@ -1,24 +0,0 @@ -Dashboard.confirm = function(message, title, callback) { - 'use strict'; - require(['confirm'], function(confirm) { - confirm(message, title).then(function() { - callback(!0); - }).catch(function() { - callback(!1); - }); - }); -}; - -Dashboard.showLoadingMsg = function() { - 'use strict'; - require(['loading'], function(loading) { - loading.show(); - }); -}; - -Dashboard.hideLoadingMsg = function() { - 'use strict'; - require(['loading'], function(loading) { - loading.hide(); - }); -}; diff --git a/src/scripts/site.js b/src/scripts/site.js index c8f207961a..65ecfd1b09 100644 --- a/src/scripts/site.js +++ b/src/scripts/site.js @@ -228,6 +228,28 @@ var Dashboard = { } else { Dashboard.navigate('selectserver.html'); } + }, + hideLoadingMsg: function() { + 'use strict'; + require(['loading'], function(loading) { + loading.hide(); + }); + }, + showLoadingMsg: function() { + 'use strict'; + require(['loading'], function(loading) { + loading.show(); + }); + }, + confirm: function(message, title, callback) { + 'use strict'; + require(['confirm'], function(confirm) { + confirm(message, title).then(function() { + callback(!0); + }).catch(function() { + callback(!1); + }); + }); } }; @@ -737,7 +759,6 @@ var AppInfo = {}; // define legacy features // TODO delete the rest of these define('fnchecked', ['legacy/fnchecked'], returnFirstDependency); - define('legacyDashboard', ['legacy/dashboard'], returnFirstDependency); define('legacySelectMenu', ['legacy/selectmenu'], returnFirstDependency); // there are several objects that need to be instantiated