diff --git a/app/modules/zotero-word-for-mac-integration b/app/modules/zotero-word-for-mac-integration index 31f5d8d145..8225aee7ab 160000 --- a/app/modules/zotero-word-for-mac-integration +++ b/app/modules/zotero-word-for-mac-integration @@ -1 +1 @@ -Subproject commit 31f5d8d145a231713cfb27e3477e774c29942c81 +Subproject commit 8225aee7abe1e5911a42f01b711530b9d9a2cfbb diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index c9e575f586..bfbe69c199 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -6132,21 +6132,19 @@ var ZoteroPane = new function() */ this.showMacWordPluginInstallWarning = function () { return new Promise((resolve) => { - const panel = document.querySelector('#mac-word-plugin-install-warning'); - const action = panel.querySelector('.link'); - const close = panel.querySelector('.close-link'); - const remind = panel.querySelector('.remind-later-link'); - const dontAskAgain = panel.querySelector('.dont-ask-again-link'); + const panel = document.getElementById('mac-word-plugin-install-warning'); + const action = document.getElementById('mac-word-plugin-install-action'); + const remind = document.getElementById('mac-word-plugin-install-remind-later'); + const dontAskAgain = document.getElementById('mac-word-plugin-install-dont-ask-again'); + + // TODO: Replace with ftl string + dontAskAgain.label = Zotero.getString('general.dontAskAgain'); panel.removeAttribute('collapsed'); action.onclick = () => { this.hideMacWordPluginInstallWarning(); resolve({ install: true }); }; - close.onclick = () => { - this.hideMacWordPluginInstallWarning(); - resolve({ dismiss: true }); - }; remind.onclick = () => { this.hideMacWordPluginInstallWarning(); resolve({ remindLater: true }); diff --git a/chrome/content/zotero/zoteroPane.xhtml b/chrome/content/zotero/zoteroPane.xhtml index 9562843e5f..a2808516c1 100644 --- a/chrome/content/zotero/zoteroPane.xhtml +++ b/chrome/content/zotero/zoteroPane.xhtml @@ -1135,11 +1135,17 @@