diff --git a/chrome/content/zotero/standalone/standalone.xul b/chrome/content/zotero/standalone/standalone.xul index 84abd53be7..8c28404235 100644 --- a/chrome/content/zotero/standalone/standalone.xul +++ b/chrome/content/zotero/standalone/standalone.xul @@ -237,6 +237,7 @@ @@ -244,18 +245,21 @@ @@ -263,18 +267,21 @@ diff --git a/chrome/content/zotero/xpcom/editorInstance.js b/chrome/content/zotero/xpcom/editorInstance.js index 85c0384116..5faae4da56 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -847,6 +847,9 @@ class EditorInstance { menuitem.setAttribute('value', item.name); menuitem.setAttribute('label', item.label); menuitem.setAttribute('disabled', !item.enabled); + if (item.checked) { + menuitem.setAttribute('type', 'checkbox'); + } menuitem.setAttribute('checked', item.checked); menuitem.addEventListener('command', () => { this._postMessage({ @@ -901,6 +904,7 @@ class EditorInstance { var menuitem = this._popup.ownerDocument.createElement('menuitem'); menuitem.setAttribute('label', Zotero.getString('spellCheck.checkSpelling')); menuitem.setAttribute('checked', spellChecker.enabled); + menuitem.setAttribute('type', 'checkbox'); menuitem.addEventListener('command', () => { // Possible values: 0 - off, 1 - only multi-line, 2 - multi and single line input boxes Zotero.Prefs.set('layout.spellcheckDefault', spellChecker.enabled ? 0 : 1, true); diff --git a/chrome/content/zotero/xpcom/reader.js b/chrome/content/zotero/xpcom/reader.js index 8e6da161db..91c6b6a681 100644 --- a/chrome/content/zotero/xpcom/reader.js +++ b/chrome/content/zotero/xpcom/reader.js @@ -332,6 +332,7 @@ class ReaderInstance { // Zoom 'Auto' menuitem = this._window.document.createElement('menuitem'); menuitem.setAttribute('label', Zotero.getString('pdfReader.zoomAuto')); + menuitem.setAttribute('type', 'checkbox'); menuitem.setAttribute('checked', data.isZoomAuto); menuitem.addEventListener('command', () => { this._postMessage({ action: 'popupCmd', cmd: 'zoomAuto' }); @@ -340,6 +341,7 @@ class ReaderInstance { // Zoom 'Page Width' menuitem = this._window.document.createElement('menuitem'); menuitem.setAttribute('label', Zotero.getString('pdfReader.zoomPageWidth')); + menuitem.setAttribute('type', 'checkbox'); menuitem.setAttribute('checked', data.isZoomPageWidth); menuitem.addEventListener('command', () => { this._postMessage({ action: 'popupCmd', cmd: 'zoomPageWidth' });