Translations for new version detected
This commit is contained in:
@@ -626,6 +626,7 @@ define([
|
||||
h('p.cp-loading-progress-drive'),
|
||||
h('p.cp-loading-progress-pad')
|
||||
]);
|
||||
$(progress).hide();
|
||||
$loading.find('.cp-loading-container').append(progress);
|
||||
} else if (config.noProgress) {
|
||||
$loading.find('.cp-loading-progress').remove();
|
||||
@@ -647,6 +648,7 @@ define([
|
||||
UI.updateLoadingProgress = function (data, isDrive) {
|
||||
var $loading = $('#' + LOADING);
|
||||
if (!$loading.length || loading.error) { return; }
|
||||
$loading.find('.cp-loading-progress').show();
|
||||
var $progress;
|
||||
if (isDrive) {
|
||||
// Drive state
|
||||
|
||||
@@ -237,7 +237,6 @@ define([], function () {
|
||||
};
|
||||
|
||||
network.on('disconnect', function (reason) {
|
||||
console.log('disconnect');
|
||||
//if (isIntentionallyLeaving) { return; }
|
||||
if (reason === "network.disconnect() called") { return; }
|
||||
onDisconnect();
|
||||
|
||||
@@ -439,9 +439,11 @@ define([
|
||||
});
|
||||
|
||||
ctx.sframeChan.on('EV_NEW_VERSION', function () {
|
||||
// TODO display new verison stuff
|
||||
// XXX
|
||||
UI.errorLoadingScreen("New version detected", true, true);
|
||||
var $err = $('<div>').append(Messages.newVersionError);
|
||||
$err.find('a').click(function () {
|
||||
funcs.gotoURL();
|
||||
});
|
||||
UI.errorLoadingScreen($err, true, true);
|
||||
});
|
||||
|
||||
ctx.metadataMgr.onReady(waitFor());
|
||||
|
||||
Reference in New Issue
Block a user