diff --git a/chrome/content/zotero/bindings/guidancepanel.xml b/chrome/content/zotero/bindings/guidancepanel.xml
index 5f9999e50..6703bb9b9 100644
--- a/chrome/content/zotero/bindings/guidancepanel.xml
+++ b/chrome/content/zotero/bindings/guidancepanel.xml
@@ -60,10 +60,13 @@
if(text.length) descriptionNode.appendChild(document.createElementNS(
"http://www.w3.org/1999/xhtml", "br"));
}
-
+
+ this.setAttribute('onpopuphidden', 'this.hidden = true');
+
var me = this;
var f = function() {
if(me.hasAttribute("foregroundonly") && Services.ww.activeWindow != window) return;
+ me.hidden = false;
panel.openPopup(forEl, position ? position : "after_start",
x ? parseInt(x, 10) : 0, y ? parseInt(y, 10) : 0, false, false, null);
Zotero.Prefs.set(pref, true);
diff --git a/chrome/content/zotero/overlay.xul b/chrome/content/zotero/overlay.xul
index 410d4a663..5e6189107 100644
--- a/chrome/content/zotero/overlay.xul
+++ b/chrome/content/zotero/overlay.xul
@@ -58,7 +58,7 @@
-
+
@@ -70,6 +70,7 @@
+