mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 09:55:39 +08:00
Merge pull request 'feature/form-multi-page' (#965) from feature/form-multi-page into release/v9.3.0
This commit is contained in:
@ -1739,10 +1739,30 @@ define([
|
||||
onMenuZoomClick: function(menu, item, e){
|
||||
switch ( item.value ) {
|
||||
case 'zoom:page':
|
||||
item.isChecked() ? this.api.zoomFitToPage() : this.api.zoomCustomMode();
|
||||
if (item.isChecked()) {
|
||||
this.api.GetMultipageViewMode() && this.api.SetMultipageViewMode(false);
|
||||
this.api.zoomFitToPage();
|
||||
this.view.mnuZoom.items[2].setChecked(false);
|
||||
} else {
|
||||
this.api.zoomCustomMode();
|
||||
}
|
||||
break;
|
||||
case 'zoom:width':
|
||||
item.isChecked() ? this.api.zoomFitToWidth() : this.api.zoomCustomMode();
|
||||
if (item.isChecked()) {
|
||||
this.api.GetMultipageViewMode() && this.api.SetMultipageViewMode(false);
|
||||
this.api.zoomFitToWidth();
|
||||
this.view.mnuZoom.items[2].setChecked(false);
|
||||
} else {
|
||||
this.api.zoomCustomMode();
|
||||
}
|
||||
break;
|
||||
case 'zoom:multi':
|
||||
if (item.isChecked()) {
|
||||
this.api.zoomCustomMode();
|
||||
this.api.SetMultipageViewMode(true);
|
||||
} else {
|
||||
this.api.SetMultipageViewMode(false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@ -76,6 +76,7 @@ define([
|
||||
items: [
|
||||
{caption: this.textFitToPage, value: 'zoom:page', toggleGroup: 'view-zoom', checkable: true},
|
||||
{caption: this.textFitToWidth, value: 'zoom:width', toggleGroup: 'view-zoom', checkable: true},
|
||||
{caption: this.textMultiplePages, value: 'zoom:multi', checkable: true},
|
||||
(new Common.UI.MenuItem({
|
||||
template: _.template([
|
||||
'<div id="id-menu-zoom" class="menu-zoom" style="height: 26px;" ',
|
||||
|
||||
@ -186,6 +186,7 @@
|
||||
"DE.Views.ApplicationView.textCut": "Cut",
|
||||
"DE.Views.ApplicationView.textFitToPage": "Fit to page",
|
||||
"DE.Views.ApplicationView.textFitToWidth": "Fit to width",
|
||||
"DE.Views.ApplicationView.textMultiplePages": "Multiple pages",
|
||||
"DE.Views.ApplicationView.textNext": "Next field",
|
||||
"DE.Views.ApplicationView.textPaste": "Paste",
|
||||
"DE.Views.ApplicationView.textPrintSel": "Print selection",
|
||||
|
||||
Reference in New Issue
Block a user