|
|
@ -5,6 +5,7 @@ define([
|
|
|
|
'/common/common-util.js',
|
|
|
|
'/common/common-util.js',
|
|
|
|
'/common/common-hash.js',
|
|
|
|
'/common/common-hash.js',
|
|
|
|
'/common/common-interface.js',
|
|
|
|
'/common/common-interface.js',
|
|
|
|
|
|
|
|
'/common/common-ui-elements.js',
|
|
|
|
'/common/common-feedback.js',
|
|
|
|
'/common/common-feedback.js',
|
|
|
|
'/bower_components/nthen/index.js',
|
|
|
|
'/bower_components/nthen/index.js',
|
|
|
|
'/common/sframe-common.js',
|
|
|
|
'/common/sframe-common.js',
|
|
|
@ -22,6 +23,7 @@ define([
|
|
|
|
Util,
|
|
|
|
Util,
|
|
|
|
Hash,
|
|
|
|
Hash,
|
|
|
|
UI,
|
|
|
|
UI,
|
|
|
|
|
|
|
|
UIElements,
|
|
|
|
Feedback,
|
|
|
|
Feedback,
|
|
|
|
nThen,
|
|
|
|
nThen,
|
|
|
|
SFCommon,
|
|
|
|
SFCommon,
|
|
|
@ -272,13 +274,13 @@ define([
|
|
|
|
setEditable(false);
|
|
|
|
setEditable(false);
|
|
|
|
if (drive.refresh) { drive.refresh(); }
|
|
|
|
if (drive.refresh) { drive.refresh(); }
|
|
|
|
APP.toolbar.failed();
|
|
|
|
APP.toolbar.failed();
|
|
|
|
if (!noAlert) { UI.alert(Messages.common_connectionLost, undefined, true); }
|
|
|
|
if (!noAlert) { UIElements.disconnectAlert(); }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var onReconnect = function () {
|
|
|
|
var onReconnect = function () {
|
|
|
|
setEditable(true);
|
|
|
|
setEditable(true);
|
|
|
|
if (drive.refresh) { drive.refresh(); }
|
|
|
|
if (drive.refresh) { drive.refresh(); }
|
|
|
|
APP.toolbar.reconnecting();
|
|
|
|
APP.toolbar.reconnecting();
|
|
|
|
UI.findOKButton().click();
|
|
|
|
UIElements.reconnectAlert();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
sframeChan.on('EV_DRIVE_LOG', function (msg) {
|
|
|
|
sframeChan.on('EV_DRIVE_LOG', function (msg) {
|
|
|
|