|
|
@ -539,16 +539,16 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
var LOADING = 'cp-loading';
|
|
|
|
var LOADING = 'cp-loading';
|
|
|
|
|
|
|
|
|
|
|
|
var getRandomTip = function () {
|
|
|
|
/*var getRandomTip = function () {
|
|
|
|
if (!Messages.tips || !Object.keys(Messages.tips).length) { return ''; }
|
|
|
|
if (!Messages.tips || !Object.keys(Messages.tips).length) { return ''; }
|
|
|
|
var keys = Object.keys(Messages.tips);
|
|
|
|
var keys = Object.keys(Messages.tips);
|
|
|
|
var rdm = Math.floor(Math.random() * keys.length);
|
|
|
|
var rdm = Math.floor(Math.random() * keys.length);
|
|
|
|
return Messages.tips[keys[rdm]];
|
|
|
|
return Messages.tips[keys[rdm]];
|
|
|
|
};
|
|
|
|
};*/
|
|
|
|
UI.addLoadingScreen = function (config) {
|
|
|
|
UI.addLoadingScreen = function (config) {
|
|
|
|
config = config || {};
|
|
|
|
config = config || {};
|
|
|
|
var loadingText = config.loadingText;
|
|
|
|
var loadingText = config.loadingText;
|
|
|
|
var hideTips = config.hideTips || AppConfig.hideLoadingScreenTips;
|
|
|
|
//var hideTips = config.hideTips || AppConfig.hideLoadingScreenTips;
|
|
|
|
var hideLogo = config.hideLogo;
|
|
|
|
var hideLogo = config.hideLogo;
|
|
|
|
var $loading, $container;
|
|
|
|
var $loading, $container;
|
|
|
|
if ($('#' + LOADING).length) {
|
|
|
|
if ($('#' + LOADING).length) {
|
|
|
|