mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-23 11:10:49 +08:00
[DE] fix bug 80129
This commit is contained in:
@ -224,6 +224,7 @@ define([
|
||||
Common.Utils.InternalSettings.set("app-settings-screen-reader", value);
|
||||
this.api.setSpeechEnabled(value);
|
||||
|
||||
|
||||
if ( !Common.Utils.isIE ) {
|
||||
if ( /^https?:\/\//.test('{{HELP_CENTER_WEB_DE}}') ) {
|
||||
const _url_obj = new URL('{{HELP_CENTER_WEB_DE}}');
|
||||
@ -1339,7 +1340,13 @@ define([
|
||||
this.api.zoomFitToWidth();
|
||||
}
|
||||
} else {
|
||||
this.api.zoom(zf > 0 ? zf : 100);
|
||||
if (Common.localStorage.getBool("de-zoom-multipage", false)) {
|
||||
this.api.zoomCustomMode();
|
||||
this.api.SetMultipageViewMode(true);
|
||||
|
||||
if ( lastZoom > 0 ) this.api.zoom(lastZoom);
|
||||
} else
|
||||
this.api.zoom(zf > 0 ? zf : 100);
|
||||
}
|
||||
|
||||
value = Common.localStorage.getItem("de-show-hiddenchars");
|
||||
|
||||
@ -246,8 +246,6 @@ define([
|
||||
|
||||
onMultiplePages: function (pressed) {
|
||||
if (this.api) {
|
||||
this.api.zoomCustomMode();
|
||||
this.api.SetMultipageViewMode(pressed);
|
||||
this.statusbar.fireEvent('pages:multiplechanged', [pressed]);
|
||||
}
|
||||
},
|
||||
|
||||
@ -109,6 +109,9 @@ define([
|
||||
this.view.chStatusbar.setValue(!state, true);
|
||||
}, this),
|
||||
'pages:multiplechanged': _.bind(function (isMultiple) {
|
||||
this.api.zoomCustomMode();
|
||||
this.api.SetMultipageViewMode(isMultiple);
|
||||
Common.localStorage.setBool("de-zoom-multipage", isMultiple);
|
||||
this.view.btnMultiplePages.toggle(isMultiple);
|
||||
}, this)
|
||||
},
|
||||
@ -290,6 +293,7 @@ define([
|
||||
if (this.api) {
|
||||
this.api.zoomCustomMode();
|
||||
this.api.SetMultipageViewMode(pressed);
|
||||
Common.localStorage.setBool("de-zoom-multipage", pressed);
|
||||
this.view.fireEvent('pages:multiplechanged', [pressed]);
|
||||
}
|
||||
},
|
||||
|
||||
@ -220,6 +220,7 @@ define([
|
||||
this.btnMultiplePages = new Common.UI.Button({
|
||||
hintAnchor: 'top',
|
||||
toggleGroup: 'multiple-pages',
|
||||
pressed: Common.localStorage.getBool("de-zoom-multipage", false),
|
||||
enableToggle: true
|
||||
});
|
||||
|
||||
|
||||
@ -312,6 +312,7 @@ define([
|
||||
iconCls: 'toolbar__icon btn-multiple-pages',
|
||||
lock: [_set.lostConnect, _set.disableOnStart],
|
||||
caption: this.textMultiplePages,
|
||||
pressed: Common.localStorage.getBool("de-zoom-multipage", false),
|
||||
enableToggle: true,
|
||||
dataHint: '1',
|
||||
dataHintDirection: 'bottom',
|
||||
|
||||
Reference in New Issue
Block a user