[forms] process "goback" option in desktop
This commit is contained in:
parent
2155d2f117
commit
ea5983d06b
|
@ -1324,7 +1324,9 @@ define([
|
|||
Common.Analytics.trackEvent('Print');
|
||||
break;
|
||||
case 'close':
|
||||
if (this.appOptions.customization && this.appOptions.customization.goback) {
|
||||
if (!DE.Controllers.Desktop.process('goback') &&
|
||||
this.appOptions.customization && this.appOptions.customization.goback)
|
||||
{
|
||||
if (this.appOptions.customization.goback.requestClose && this.appOptions.canRequestClose)
|
||||
Common.Gateway.requestClose();
|
||||
else if (this.appOptions.customization.goback.url) {
|
||||
|
@ -1845,6 +1847,18 @@ define([
|
|||
isActive: function () {
|
||||
return !!native;
|
||||
},
|
||||
process: function (opts) {
|
||||
if ( !!native ) {
|
||||
if ( opts == 'goback' ) {
|
||||
var config = DE.getController('ApplicationController').editorConfig;
|
||||
native.execCommand('go:folder',
|
||||
config.isOffline ? 'offline' : config.customization.goback.url);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
}
|
||||
};
|
||||
DE.Controllers.Desktop = new Desktop();
|
||||
|
|
Loading…
Reference in a new issue