Merge branch 'hotfix/v7.2.2' into release/v7.3.0
This commit is contained in:
commit
57749f4fe1
|
@ -323,6 +323,18 @@ define([
|
||||||
})).on('closeclick', function () {
|
})).on('closeclick', function () {
|
||||||
this.close();
|
this.close();
|
||||||
}).show();
|
}).show();
|
||||||
|
|
||||||
|
native.execCommand('webapps:features', JSON.stringify(features));
|
||||||
|
|
||||||
|
api.asc_registerCallback('asc_onDocumentName', function () {
|
||||||
|
if ( features.readonly ) {
|
||||||
|
if ( api.asc_getLocalRestrictions() == Asc.c_oAscLocalRestrictionType.None ) {
|
||||||
|
features.readonly = false;
|
||||||
|
header.setDocumentReadOnly(false);
|
||||||
|
native.execCommand('webapps:features', JSON.stringify(features));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_checkHelpAvailable.call(me);
|
_checkHelpAvailable.call(me);
|
||||||
|
|
|
@ -525,6 +525,7 @@ define([
|
||||||
paperOrientation: size ? (size['H'] > size['W'] ? 'portrait' : 'landscape') : null
|
paperOrientation: size ? (size['H'] > size['W'] ? 'portrait' : 'landscape') : null
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.printSettings.menu.hide();
|
||||||
if ( print ) {
|
if ( print ) {
|
||||||
var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86);
|
var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86);
|
||||||
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
||||||
|
@ -534,7 +535,6 @@ define([
|
||||||
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
||||||
this.api.asc_DownloadAs(opts);
|
this.api.asc_DownloadAs(opts);
|
||||||
}
|
}
|
||||||
this.printSettings.menu.hide();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
inputPagesChanging: function (input, value) {
|
inputPagesChanging: function (input, value) {
|
||||||
|
|
Loading…
Reference in a new issue