Swap "Split Vertically" and "Split Horizontally" in PDF reader
This commit is contained in:
parent
8fc9ebe4ab
commit
12b1897478
3 changed files with 20 additions and 20 deletions
|
@ -164,18 +164,18 @@
|
|||
oncommand="menuCmd('zoomPageHeight')"
|
||||
/>
|
||||
<menuseparator class="menu-type-reader"/>
|
||||
<menuitem
|
||||
id="view-menuitem-split-horizontally"
|
||||
type="checkbox"
|
||||
label="aaa &zotero.pdfReader.splitHorizontally;"
|
||||
oncommand="menuCmd('splitHorizontally')"
|
||||
/>
|
||||
<menuitem
|
||||
id="view-menuitem-split-vertically"
|
||||
type="checkbox"
|
||||
label="&zotero.pdfReader.splitVertically;"
|
||||
oncommand="menuCmd('splitVertically')"
|
||||
/>
|
||||
<menuitem
|
||||
id="view-menuitem-split-horizontally"
|
||||
type="checkbox"
|
||||
label="&zotero.pdfReader.splitHorizontally;"
|
||||
oncommand="menuCmd('splitHorizontally')"
|
||||
/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<menu
|
||||
|
|
|
@ -337,13 +337,6 @@
|
|||
oncommand="ZoteroStandalone.onReaderCmd('zoomPageHeight')"
|
||||
/>
|
||||
<menuseparator class="menu-type-reader"/>
|
||||
<menuitem
|
||||
id="view-menuitem-split-vertically"
|
||||
class="menu-type-reader"
|
||||
type="checkbox"
|
||||
label="&zotero.pdfReader.splitVertically;"
|
||||
oncommand="ZoteroStandalone.onReaderCmd('splitVertically')"
|
||||
/>
|
||||
<menuitem
|
||||
id="view-menuitem-split-horizontally"
|
||||
class="menu-type-reader"
|
||||
|
@ -351,6 +344,13 @@
|
|||
label="&zotero.pdfReader.splitHorizontally;"
|
||||
oncommand="ZoteroStandalone.onReaderCmd('splitHorizontally')"
|
||||
/>
|
||||
<menuitem
|
||||
id="view-menuitem-split-vertically"
|
||||
class="menu-type-reader"
|
||||
type="checkbox"
|
||||
label="&zotero.pdfReader.splitVertically;"
|
||||
oncommand="ZoteroStandalone.onReaderCmd('splitVertically')"
|
||||
/>
|
||||
<menuseparator class="menu-type-reader"/>
|
||||
|
||||
<menu id="layout-menu" label="&layout.label;">
|
||||
|
|
|
@ -698,13 +698,6 @@ class ReaderInstance {
|
|||
popup.appendChild(menuitem);
|
||||
// Separator
|
||||
popup.appendChild(this._window.document.createElement('menuseparator'));
|
||||
// Split Vertically
|
||||
menuitem = this._window.document.createElement('menuitem');
|
||||
menuitem.setAttribute('label', Zotero.getString('pdfReader.splitVertically'));
|
||||
menuitem.setAttribute('type', 'checkbox');
|
||||
menuitem.setAttribute('checked', this.isSplitVerticallyActive());
|
||||
menuitem.addEventListener('command', () => this._splitVertically());
|
||||
popup.appendChild(menuitem);
|
||||
// Split Horizontally
|
||||
menuitem = this._window.document.createElement('menuitem');
|
||||
menuitem.setAttribute('label', Zotero.getString('pdfReader.splitHorizontally'));
|
||||
|
@ -712,6 +705,13 @@ class ReaderInstance {
|
|||
menuitem.setAttribute('checked', this.isSplitHorizontallyActive());
|
||||
menuitem.addEventListener('command', () => this._splitHorizontally());
|
||||
popup.appendChild(menuitem);
|
||||
// Split Vertically
|
||||
menuitem = this._window.document.createElement('menuitem');
|
||||
menuitem.setAttribute('label', Zotero.getString('pdfReader.splitVertically'));
|
||||
menuitem.setAttribute('type', 'checkbox');
|
||||
menuitem.setAttribute('checked', this.isSplitVerticallyActive());
|
||||
menuitem.addEventListener('command', () => this._splitVertically());
|
||||
popup.appendChild(menuitem);
|
||||
// Separator
|
||||
popup.appendChild(this._window.document.createElement('menuseparator'));
|
||||
// Next page
|
||||
|
|
Loading…
Reference in a new issue