Merge branch 'fix/request-close' into develop
This commit is contained in:
commit
1e18f144c2
|
@ -662,6 +662,13 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var _requestClose = function(data) {
|
||||||
|
_sendCommand({
|
||||||
|
command: 'requestClose',
|
||||||
|
data: data
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
var _processMouse = function(evt) {
|
var _processMouse = function(evt) {
|
||||||
var r = iframe.getBoundingClientRect();
|
var r = iframe.getBoundingClientRect();
|
||||||
var data = {
|
var data = {
|
||||||
|
@ -708,7 +715,8 @@
|
||||||
insertImage : _insertImage,
|
insertImage : _insertImage,
|
||||||
setMailMergeRecipients: _setMailMergeRecipients,
|
setMailMergeRecipients: _setMailMergeRecipients,
|
||||||
setRevisedFile : _setRevisedFile,
|
setRevisedFile : _setRevisedFile,
|
||||||
setFavorite : _setFavorite
|
setFavorite : _setFavorite,
|
||||||
|
requestClose : _requestClose
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -126,6 +126,10 @@ if (Common === undefined) {
|
||||||
|
|
||||||
'setFavorite': function(data) {
|
'setFavorite': function(data) {
|
||||||
$me.trigger('setfavorite', data);
|
$me.trigger('setfavorite', data);
|
||||||
|
},
|
||||||
|
|
||||||
|
'requestClose': function(data) {
|
||||||
|
$me.trigger('requestclose', data);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -265,6 +265,7 @@ DE.ApplicationController = new(function(){
|
||||||
|
|
||||||
Common.Gateway.on('processmouse', onProcessMouse);
|
Common.Gateway.on('processmouse', onProcessMouse);
|
||||||
Common.Gateway.on('downloadas', onDownloadAs);
|
Common.Gateway.on('downloadas', onDownloadAs);
|
||||||
|
Common.Gateway.on('requestclose', onRequestClose);
|
||||||
|
|
||||||
DE.ApplicationView.tools.get('#idt-fullscreen')
|
DE.ApplicationView.tools.get('#idt-fullscreen')
|
||||||
.on('click', function(){
|
.on('click', function(){
|
||||||
|
@ -493,6 +494,10 @@ DE.ApplicationController = new(function(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onRequestClose() {
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
}
|
||||||
|
|
||||||
function onDownloadAs() {
|
function onDownloadAs() {
|
||||||
if ( permissions.download === false) {
|
if ( permissions.download === false) {
|
||||||
Common.Gateway.reportError(Asc.c_oAscError.ID.AccessDeny, me.errorAccessDeny);
|
Common.Gateway.reportError(Asc.c_oAscError.ID.AccessDeny, me.errorAccessDeny);
|
||||||
|
|
|
@ -706,11 +706,37 @@ define([
|
||||||
app.getController('Viewport').SetDisabled(disable);
|
app.getController('Viewport').SetDisabled(disable);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onRequestClose: function() {
|
||||||
|
var me = this;
|
||||||
|
if (this.api.isDocumentModified()) {
|
||||||
|
this.api.asc_stopSaving();
|
||||||
|
Common.UI.warning({
|
||||||
|
closable: false,
|
||||||
|
width: 500,
|
||||||
|
title: this.notcriticalErrorTitle,
|
||||||
|
msg: this.leavePageTextOnClose,
|
||||||
|
buttons: ['ok', 'cancel'],
|
||||||
|
primary: 'ok',
|
||||||
|
callback: function(btn) {
|
||||||
|
if (btn == 'ok') {
|
||||||
|
me.api.asc_undoAllChanges();
|
||||||
|
me.api.asc_continueSaving();
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
// Common.Controllers.Desktop.requestClose();
|
||||||
|
} else
|
||||||
|
me.api.asc_continueSaving();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
// Common.Controllers.Desktop.requestClose();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
goBack: function(current) {
|
goBack: function(current) {
|
||||||
if ( !Common.Controllers.Desktop.process('goback') ) {
|
if ( !Common.Controllers.Desktop.process('goback') ) {
|
||||||
if (this.appOptions.customization.goback.requestClose && this.appOptions.canRequestClose) {
|
if (this.appOptions.customization.goback.requestClose && this.appOptions.canRequestClose) {
|
||||||
Common.Gateway.requestClose();
|
this.onRequestClose();
|
||||||
// Common.Controllers.Desktop.requestClose();
|
|
||||||
} else {
|
} else {
|
||||||
var href = this.appOptions.customization.goback.url;
|
var href = this.appOptions.customization.goback.url;
|
||||||
if (!current && this.appOptions.customization.goback.blank!==false) {
|
if (!current && this.appOptions.customization.goback.blank!==false) {
|
||||||
|
@ -1146,6 +1172,7 @@ define([
|
||||||
Common.Gateway.on('refreshhistory', _.bind(me.onRefreshHistory, me));
|
Common.Gateway.on('refreshhistory', _.bind(me.onRefreshHistory, me));
|
||||||
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
||||||
Common.Gateway.on('setfavorite', _.bind(me.onSetFavorite, me));
|
Common.Gateway.on('setfavorite', _.bind(me.onSetFavorite, me));
|
||||||
|
Common.Gateway.on('requestclose', _.bind(me.onRequestClose, me));
|
||||||
|
|
||||||
Common.Gateway.sendInfo({mode:me.appOptions.isEdit?'edit':'view'});
|
Common.Gateway.sendInfo({mode:me.appOptions.isEdit?'edit':'view'});
|
||||||
|
|
||||||
|
@ -2849,7 +2876,8 @@ define([
|
||||||
textLongName: 'Enter a name that is less than 128 characters.',
|
textLongName: 'Enter a name that is less than 128 characters.',
|
||||||
textGuest: 'Guest',
|
textGuest: 'Guest',
|
||||||
errorSubmit: 'Submit failed.',
|
errorSubmit: 'Submit failed.',
|
||||||
txtClickToLoad: 'Click to load image'
|
txtClickToLoad: 'Click to load image',
|
||||||
|
leavePageTextOnClose: 'All unsaved changes in this document will be lost.<br> Click \'Cancel\' then \'Save\' to save them. Click \'OK\' to discard all the unsaved changes.'
|
||||||
}
|
}
|
||||||
})(), DE.Controllers.Main || {}))
|
})(), DE.Controllers.Main || {}))
|
||||||
});
|
});
|
|
@ -842,6 +842,7 @@
|
||||||
"DE.Controllers.Main.warnNoLicense": "You've reached the limit for simultaneous connections to %1 editors. This document will be opened for viewing only.<br>Contact %1 sales team for personal upgrade terms.",
|
"DE.Controllers.Main.warnNoLicense": "You've reached the limit for simultaneous connections to %1 editors. This document will be opened for viewing only.<br>Contact %1 sales team for personal upgrade terms.",
|
||||||
"DE.Controllers.Main.warnNoLicenseUsers": "You've reached the user limit for %1 editors. Contact %1 sales team for personal upgrade terms.",
|
"DE.Controllers.Main.warnNoLicenseUsers": "You've reached the user limit for %1 editors. Contact %1 sales team for personal upgrade terms.",
|
||||||
"DE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
|
"DE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
|
||||||
|
"DE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this document will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
|
||||||
"DE.Controllers.Navigation.txtBeginning": "Beginning of document",
|
"DE.Controllers.Navigation.txtBeginning": "Beginning of document",
|
||||||
"DE.Controllers.Navigation.txtGotoBeginning": "Go to the beginning of the document",
|
"DE.Controllers.Navigation.txtGotoBeginning": "Go to the beginning of the document",
|
||||||
"DE.Controllers.Statusbar.textHasChanges": "New changes have been tracked",
|
"DE.Controllers.Statusbar.textHasChanges": "New changes have been tracked",
|
||||||
|
|
|
@ -368,6 +368,10 @@ define([
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onRequestClose: function() {
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
},
|
||||||
|
|
||||||
goBack: function(current) {
|
goBack: function(current) {
|
||||||
if (this.appOptions.customization.goback.requestClose && this.appOptions.canRequestClose) {
|
if (this.appOptions.customization.goback.requestClose && this.appOptions.canRequestClose) {
|
||||||
Common.Gateway.requestClose();
|
Common.Gateway.requestClose();
|
||||||
|
@ -633,6 +637,7 @@ define([
|
||||||
Common.Gateway.on('processsaveresult', _.bind(me.onProcessSaveResult, me));
|
Common.Gateway.on('processsaveresult', _.bind(me.onProcessSaveResult, me));
|
||||||
Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me));
|
Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me));
|
||||||
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
||||||
|
Common.Gateway.on('requestclose', _.bind(me.onRequestClose, me));
|
||||||
|
|
||||||
Common.Gateway.sendInfo({
|
Common.Gateway.sendInfo({
|
||||||
mode: me.appOptions.isEdit ? 'edit' : 'view'
|
mode: me.appOptions.isEdit ? 'edit' : 'view'
|
||||||
|
|
|
@ -273,6 +273,7 @@ PE.ApplicationController = new(function(){
|
||||||
|
|
||||||
Common.Gateway.on('processmouse', onProcessMouse);
|
Common.Gateway.on('processmouse', onProcessMouse);
|
||||||
Common.Gateway.on('downloadas', onDownloadAs);
|
Common.Gateway.on('downloadas', onDownloadAs);
|
||||||
|
Common.Gateway.on('requestclose', onRequestClose);
|
||||||
|
|
||||||
PE.ApplicationView.tools.get('#idt-fullscreen')
|
PE.ApplicationView.tools.get('#idt-fullscreen')
|
||||||
.on('click', function(){
|
.on('click', function(){
|
||||||
|
@ -593,6 +594,10 @@ PE.ApplicationController = new(function(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onRequestClose() {
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
}
|
||||||
|
|
||||||
function onDownloadAs() {
|
function onDownloadAs() {
|
||||||
if ( permissions.download === false) {
|
if ( permissions.download === false) {
|
||||||
Common.Gateway.reportError(Asc.c_oAscError.ID.AccessDeny, me.errorAccessDeny);
|
Common.Gateway.reportError(Asc.c_oAscError.ID.AccessDeny, me.errorAccessDeny);
|
||||||
|
|
|
@ -486,12 +486,38 @@ define([
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onRequestClose: function() {
|
||||||
|
var me = this;
|
||||||
|
if (this.api.isDocumentModified()) {
|
||||||
|
this.api.asc_stopSaving();
|
||||||
|
Common.UI.warning({
|
||||||
|
closable: false,
|
||||||
|
width: 500,
|
||||||
|
title: this.notcriticalErrorTitle,
|
||||||
|
msg: this.leavePageTextOnClose,
|
||||||
|
buttons: ['ok', 'cancel'],
|
||||||
|
primary: 'ok',
|
||||||
|
callback: function(btn) {
|
||||||
|
if (btn == 'ok') {
|
||||||
|
me.api.asc_undoAllChanges();
|
||||||
|
me.api.asc_continueSaving();
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
// Common.Controllers.Desktop.requestClose();
|
||||||
|
} else
|
||||||
|
me.api.asc_continueSaving();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
// Common.Controllers.Desktop.requestClose();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
goBack: function(current) {
|
goBack: function(current) {
|
||||||
var me = this;
|
var me = this;
|
||||||
if ( !Common.Controllers.Desktop.process('goback') ) {
|
if ( !Common.Controllers.Desktop.process('goback') ) {
|
||||||
if (me.appOptions.customization.goback.requestClose && me.appOptions.canRequestClose) {
|
if (me.appOptions.customization.goback.requestClose && me.appOptions.canRequestClose) {
|
||||||
Common.Gateway.requestClose();
|
me.onRequestClose();
|
||||||
// Common.Controllers.Desktop.requestClose();
|
|
||||||
} else {
|
} else {
|
||||||
var href = me.appOptions.customization.goback.url;
|
var href = me.appOptions.customization.goback.url;
|
||||||
if (!current && me.appOptions.customization.goback.blank!==false) {
|
if (!current && me.appOptions.customization.goback.blank!==false) {
|
||||||
|
@ -871,7 +897,7 @@ define([
|
||||||
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
||||||
Common.Gateway.on('setfavorite', _.bind(me.onSetFavorite, me));
|
Common.Gateway.on('setfavorite', _.bind(me.onSetFavorite, me));
|
||||||
Common.Gateway.on('refreshhistory', _.bind(me.onRefreshHistory, me));
|
Common.Gateway.on('refreshhistory', _.bind(me.onRefreshHistory, me));
|
||||||
|
Common.Gateway.on('requestclose', _.bind(me.onRequestClose, me));
|
||||||
Common.Gateway.sendInfo({mode:me.appOptions.isEdit?'edit':'view'});
|
Common.Gateway.sendInfo({mode:me.appOptions.isEdit?'edit':'view'});
|
||||||
|
|
||||||
$(document).on('contextmenu', _.bind(me.onContextMenu, me));
|
$(document).on('contextmenu', _.bind(me.onContextMenu, me));
|
||||||
|
@ -2648,7 +2674,8 @@ define([
|
||||||
textRenameError: 'User name must not be empty.',
|
textRenameError: 'User name must not be empty.',
|
||||||
textLongName: 'Enter a name that is less than 128 characters.',
|
textLongName: 'Enter a name that is less than 128 characters.',
|
||||||
textGuest: 'Guest',
|
textGuest: 'Guest',
|
||||||
txtErrorLoadHistory: 'Loading history failed'
|
txtErrorLoadHistory: 'Loading history failed',
|
||||||
|
leavePageTextOnClose: 'All unsaved changes in this document will be lost.<br> Click \'Cancel\' then \'Save\' to save them. Click \'OK\' to discard all the unsaved changes.'
|
||||||
}
|
}
|
||||||
})(), PE.Controllers.Main || {}))
|
})(), PE.Controllers.Main || {}))
|
||||||
});
|
});
|
||||||
|
|
|
@ -712,6 +712,7 @@
|
||||||
"PE.Controllers.Main.warnNoLicenseUsers": "You've reached the user limit for %1 editors. Contact %1 sales team for personal upgrade terms.",
|
"PE.Controllers.Main.warnNoLicenseUsers": "You've reached the user limit for %1 editors. Contact %1 sales team for personal upgrade terms.",
|
||||||
"PE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
|
"PE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
|
||||||
"PE.Controllers.Main.txtErrorLoadHistory": "History loading failed",
|
"PE.Controllers.Main.txtErrorLoadHistory": "History loading failed",
|
||||||
|
"PE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this presentation will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
|
||||||
"PE.Controllers.Statusbar.zoomText": "Zoom {0}%",
|
"PE.Controllers.Statusbar.zoomText": "Zoom {0}%",
|
||||||
"PE.Controllers.Toolbar.confirmAddFontName": "The font you are going to save is not available on the current device.<br>The text style will be displayed using one of the system fonts, the saved font will be used when it is available.<br>Do you want to continue?",
|
"PE.Controllers.Toolbar.confirmAddFontName": "The font you are going to save is not available on the current device.<br>The text style will be displayed using one of the system fonts, the saved font will be used when it is available.<br>Do you want to continue?",
|
||||||
"PE.Controllers.Toolbar.textAccent": "Accents",
|
"PE.Controllers.Toolbar.textAccent": "Accents",
|
||||||
|
|
|
@ -351,6 +351,10 @@ define([
|
||||||
this.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PPTX, true));
|
this.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PPTX, true));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onRequestClose: function() {
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
},
|
||||||
|
|
||||||
goBack: function(current) {
|
goBack: function(current) {
|
||||||
if (this.appOptions.customization.goback.requestClose && this.appOptions.canRequestClose) {
|
if (this.appOptions.customization.goback.requestClose && this.appOptions.canRequestClose) {
|
||||||
Common.Gateway.requestClose();
|
Common.Gateway.requestClose();
|
||||||
|
@ -579,6 +583,7 @@ define([
|
||||||
Common.Gateway.on('processsaveresult', _.bind(me.onProcessSaveResult, me));
|
Common.Gateway.on('processsaveresult', _.bind(me.onProcessSaveResult, me));
|
||||||
Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me));
|
Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me));
|
||||||
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
||||||
|
Common.Gateway.on('requestclose', _.bind(me.onRequestClose, me));
|
||||||
|
|
||||||
Common.Gateway.sendInfo({
|
Common.Gateway.sendInfo({
|
||||||
mode: me.appOptions.isEdit ? 'edit' : 'view'
|
mode: me.appOptions.isEdit ? 'edit' : 'view'
|
||||||
|
|
|
@ -210,6 +210,7 @@ SSE.ApplicationController = new(function(){
|
||||||
|
|
||||||
Common.Gateway.on('processmouse', onProcessMouse);
|
Common.Gateway.on('processmouse', onProcessMouse);
|
||||||
Common.Gateway.on('downloadas', onDownloadAs);
|
Common.Gateway.on('downloadas', onDownloadAs);
|
||||||
|
Common.Gateway.on('requestclose', onRequestClose);
|
||||||
|
|
||||||
SSE.ApplicationView.tools.get('#idt-fullscreen')
|
SSE.ApplicationView.tools.get('#idt-fullscreen')
|
||||||
.on('click', function(){
|
.on('click', function(){
|
||||||
|
@ -499,6 +500,10 @@ SSE.ApplicationController = new(function(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onRequestClose() {
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
}
|
||||||
|
|
||||||
function onDownloadAs() {
|
function onDownloadAs() {
|
||||||
if ( permissions.download === false) {
|
if ( permissions.download === false) {
|
||||||
Common.Gateway.reportError(Asc.c_oAscError.ID.AccessDeny, me.errorAccessDeny);
|
Common.Gateway.reportError(Asc.c_oAscError.ID.AccessDeny, me.errorAccessDeny);
|
||||||
|
|
|
@ -551,12 +551,38 @@ define([
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onRequestClose: function() {
|
||||||
|
var me = this;
|
||||||
|
if (this.api.asc_isDocumentModified()) {
|
||||||
|
this.api.asc_stopSaving();
|
||||||
|
Common.UI.warning({
|
||||||
|
closable: false,
|
||||||
|
width: 500,
|
||||||
|
title: this.notcriticalErrorTitle,
|
||||||
|
msg: this.leavePageTextOnClose,
|
||||||
|
buttons: ['ok', 'cancel'],
|
||||||
|
primary: 'ok',
|
||||||
|
callback: function(btn) {
|
||||||
|
if (btn == 'ok') {
|
||||||
|
me.api.asc_undoAllChanges();
|
||||||
|
me.api.asc_continueSaving();
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
// Common.Controllers.Desktop.requestClose();
|
||||||
|
} else
|
||||||
|
me.api.asc_continueSaving();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
// Common.Controllers.Desktop.requestClose();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
goBack: function(current) {
|
goBack: function(current) {
|
||||||
var me = this;
|
var me = this;
|
||||||
if ( !Common.Controllers.Desktop.process('goback') ) {
|
if ( !Common.Controllers.Desktop.process('goback') ) {
|
||||||
if (me.appOptions.customization.goback.requestClose && me.appOptions.canRequestClose) {
|
if (me.appOptions.customization.goback.requestClose && me.appOptions.canRequestClose) {
|
||||||
Common.Gateway.requestClose();
|
me.onRequestClose();
|
||||||
// Common.Controllers.Desktop.requestClose();
|
|
||||||
} else {
|
} else {
|
||||||
var href = me.appOptions.customization.goback.url;
|
var href = me.appOptions.customization.goback.url;
|
||||||
if (!current && me.appOptions.customization.goback.blank!==false) {
|
if (!current && me.appOptions.customization.goback.blank!==false) {
|
||||||
|
@ -927,6 +953,7 @@ define([
|
||||||
Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me));
|
Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me));
|
||||||
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
||||||
Common.Gateway.on('setfavorite', _.bind(me.onSetFavorite, me));
|
Common.Gateway.on('setfavorite', _.bind(me.onSetFavorite, me));
|
||||||
|
Common.Gateway.on('requestclose', _.bind(me.onRequestClose, me));
|
||||||
Common.Gateway.sendInfo({mode:me.appOptions.isEdit?'edit':'view'});
|
Common.Gateway.sendInfo({mode:me.appOptions.isEdit?'edit':'view'});
|
||||||
|
|
||||||
$(document).on('contextmenu', _.bind(me.onContextMenu, me));
|
$(document).on('contextmenu', _.bind(me.onContextMenu, me));
|
||||||
|
@ -2870,7 +2897,8 @@ define([
|
||||||
txtMonths: 'Months',
|
txtMonths: 'Months',
|
||||||
txtQuarters: 'Quarters',
|
txtQuarters: 'Quarters',
|
||||||
txtYears: 'Years',
|
txtYears: 'Years',
|
||||||
errorPivotGroup: 'Cannot group that selection.'
|
errorPivotGroup: 'Cannot group that selection.',
|
||||||
|
leavePageTextOnClose: 'All unsaved changes in this document will be lost.<br> Click \'Cancel\' then \'Save\' to save them. Click \'OK\' to discard all the unsaved changes.'
|
||||||
}
|
}
|
||||||
})(), SSE.Controllers.Main || {}))
|
})(), SSE.Controllers.Main || {}))
|
||||||
});
|
});
|
||||||
|
|
|
@ -972,6 +972,7 @@
|
||||||
"SSE.Controllers.Main.warnNoLicense": "You've reached the limit for simultaneous connections to %1 editors. This document will be opened for viewing only.<br>Contact %1 sales team for personal upgrade terms.",
|
"SSE.Controllers.Main.warnNoLicense": "You've reached the limit for simultaneous connections to %1 editors. This document will be opened for viewing only.<br>Contact %1 sales team for personal upgrade terms.",
|
||||||
"SSE.Controllers.Main.warnNoLicenseUsers": "You've reached the user limit for %1 editors. Contact %1 sales team for personal upgrade terms.",
|
"SSE.Controllers.Main.warnNoLicenseUsers": "You've reached the user limit for %1 editors. Contact %1 sales team for personal upgrade terms.",
|
||||||
"SSE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
|
"SSE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
|
||||||
|
"SSE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this spreadsheet will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
|
||||||
"SSE.Controllers.Print.strAllSheets": "All Sheets",
|
"SSE.Controllers.Print.strAllSheets": "All Sheets",
|
||||||
"SSE.Controllers.Print.textFirstCol": "First column",
|
"SSE.Controllers.Print.textFirstCol": "First column",
|
||||||
"SSE.Controllers.Print.textFirstRow": "First row",
|
"SSE.Controllers.Print.textFirstRow": "First row",
|
||||||
|
|
|
@ -362,6 +362,10 @@ define([
|
||||||
this.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.XLSX, true));
|
this.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.XLSX, true));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onRequestClose: function() {
|
||||||
|
Common.Gateway.requestClose();
|
||||||
|
},
|
||||||
|
|
||||||
goBack: function(current) {
|
goBack: function(current) {
|
||||||
if (this.appOptions.customization.goback.requestClose && this.appOptions.canRequestClose) {
|
if (this.appOptions.customization.goback.requestClose && this.appOptions.canRequestClose) {
|
||||||
Common.Gateway.requestClose();
|
Common.Gateway.requestClose();
|
||||||
|
@ -600,6 +604,7 @@ define([
|
||||||
Common.Gateway.on('processsaveresult', _.bind(me.onProcessSaveResult, me));
|
Common.Gateway.on('processsaveresult', _.bind(me.onProcessSaveResult, me));
|
||||||
Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me));
|
Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me));
|
||||||
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
||||||
|
Common.Gateway.on('requestclose', _.bind(me.onRequestClose, me));
|
||||||
|
|
||||||
Common.Gateway.sendInfo({
|
Common.Gateway.sendInfo({
|
||||||
mode: me.appOptions.isEdit ? 'edit' : 'view'
|
mode: me.appOptions.isEdit ? 'edit' : 'view'
|
||||||
|
|
Loading…
Reference in a new issue