diff --git a/chrome/content/zotero/bindings/guidancepanel.xml b/chrome/content/zotero/bindings/guidancepanel.xml index 12f40106a..5a925e750 100644 --- a/chrome/content/zotero/bindings/guidancepanel.xml +++ b/chrome/content/zotero/bindings/guidancepanel.xml @@ -29,71 +29,130 @@ xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + + + + + - - + + + + + + + + + + + + + - - - + + + + + + + + + + + diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index 8c91b6b98..750476f1f 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -1874,10 +1874,14 @@ if(field === 'creator') { // Reset creator mode settings here so that flex attribute gets reset this.switchCreatorMode(row, (otherFields.fieldMode ? 1 : 0), true); - + Zotero.debug("HERE"); if(Zotero.ItemTypes.getName(this.item.itemTypeID) === "bookSection") { + Zotero.debug("YES"); var creatorTypeLabels = document.getAnonymousNodes(this)[0].getElementsByClassName("creator-type-label"); - document.getElementById("zotero-author-guidance").show(creatorTypeLabels[creatorTypeLabels.length-1]); + Zotero.debug(creatorTypeLabels[creatorTypeLabels.length-1] + ""); + document.getElementById("zotero-author-guidance").show({ + forEl: creatorTypeLabels[creatorTypeLabels.length-1] + }); } } diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js index 35ee64561..594bbfcfb 100644 --- a/chrome/content/zotero/browser.js +++ b/chrome/content/zotero/browser.js @@ -441,14 +441,6 @@ var Zotero_Browser = new function() { button.tooltipText = tooltiptext; if (state == tab.CAPTURE_STATE_TRANSLATABLE) { button.classList.add('translate'); - - // Show guidance panel if necessary - if (inToolbar) { - button.addEventListener("load", function() { - document.getElementById("zotero-status-image-guidance").show(); - }); - } - // TODO: Different guidance for web pages? } else { button.classList.remove('translate'); diff --git a/chrome/content/zotero/icon.js b/chrome/content/zotero/icon.js index de8708297..f5f401fc1 100644 --- a/chrome/content/zotero/icon.js +++ b/chrome/content/zotero/icon.js @@ -61,9 +61,10 @@ CustomizableUI.addListener({ var shortcut = Zotero.getString( Zotero.isMac ? "general.keys.cmdShift" : "general.keys.ctrlShift" ) + Zotero.Prefs.get("keys.openZotero"); - document.getElementById("zotero-toolbar-button-guidance").show( - null, Zotero.getString(property, shortcut) - ); + document.getElementById("zotero-main-button-guidance").show({ + text: Zotero.getString(property, shortcut) + }); + document.getElementById("zotero-save-button-guidance").show(); } else if (id == getSingleID('save')) { Zotero_Browser.updateStatus(); diff --git a/chrome/content/zotero/overlay.xul b/chrome/content/zotero/overlay.xul index 8c08dd644..f894ecc17 100644 --- a/chrome/content/zotero/overlay.xul +++ b/chrome/content/zotero/overlay.xul @@ -50,9 +50,12 @@