|
|
@ -7,10 +7,11 @@ define([
|
|
|
|
'/common/notify.js',
|
|
|
|
'/common/notify.js',
|
|
|
|
'/common/visible.js',
|
|
|
|
'/common/visible.js',
|
|
|
|
'/common/tippy.min.js',
|
|
|
|
'/common/tippy.min.js',
|
|
|
|
|
|
|
|
'/customize/pages.js',
|
|
|
|
'/common/hyperscript.js',
|
|
|
|
'/common/hyperscript.js',
|
|
|
|
'/bower_components/bootstrap-tokenfield/dist/bootstrap-tokenfield.js',
|
|
|
|
'/bower_components/bootstrap-tokenfield/dist/bootstrap-tokenfield.js',
|
|
|
|
'css!/common/tippy.css',
|
|
|
|
'css!/common/tippy.css',
|
|
|
|
], function ($, Messages, Util, AppConfig, Alertify, Notify, Visible, Tippy, h) {
|
|
|
|
], function ($, Messages, Util, AppConfig, Alertify, Notify, Visible, Tippy, Pages, h) {
|
|
|
|
var UI = {};
|
|
|
|
var UI = {};
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -171,7 +172,7 @@ define([
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
UI.spinner = function (parent) {
|
|
|
|
UI.spinner = function (parent) {
|
|
|
|
var $target = $('<span>', {
|
|
|
|
var $target = $('<span>', {
|
|
|
|
'class': 'fa fa-spinner fa-pulse fa-4x fa-fw'
|
|
|
|
'class': 'fa fa-circle-o-notch fa-spin fa-4x fa-fw',
|
|
|
|
}).hide();
|
|
|
|
}).hide();
|
|
|
|
|
|
|
|
|
|
|
|
$(parent).append($target);
|
|
|
|
$(parent).append($target);
|
|
|
@ -212,16 +213,15 @@ define([
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$container = $loading.find('.loadingContainer');
|
|
|
|
$container = $loading.find('.loadingContainer');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$loading = $('<div>', {id: LOADING});
|
|
|
|
$loading = $(Pages.loadingScreen());
|
|
|
|
$container = $('<div>', {'class': 'loadingContainer'});
|
|
|
|
$container = $loading.find('.loadingContainer');
|
|
|
|
if (!hideLogo) {
|
|
|
|
if (hideLogo) {
|
|
|
|
$container.append('<img class="cryptofist" src="/customize/cryptofist_small.png" />');
|
|
|
|
$loading.find('img').hide();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$loading.find('img').show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var $spinner = $('<div>', {'class': 'spinnerContainer'});
|
|
|
|
var $spinner = $loading.find('.spinnerContainer');
|
|
|
|
UI.spinner($spinner).show();
|
|
|
|
$spinner.show();
|
|
|
|
var $text = $('<p>').text(loadingText || Messages.loading);
|
|
|
|
|
|
|
|
$container.append($spinner).append($text);
|
|
|
|
|
|
|
|
$loading.append($container);
|
|
|
|
|
|
|
|
$('body').append($loading);
|
|
|
|
$('body').append($loading);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (Messages.tips && !hideTips) {
|
|
|
|
if (Messages.tips && !hideTips) {
|
|
|
|