From 7841bb43278cdcd686a2dead14c5e96b0b01aca9 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 29 Apr 2014 01:42:53 -0400 Subject: [PATCH] Don't dismiss icon first run guidance until clicked --- chrome/content/zotero/bindings/guidancepanel.xml | 10 +++++++++- chrome/content/zotero/overlay.xul | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/bindings/guidancepanel.xml b/chrome/content/zotero/bindings/guidancepanel.xml index 59a8f8f77..5f9999e50 100644 --- a/chrome/content/zotero/bindings/guidancepanel.xml +++ b/chrome/content/zotero/bindings/guidancepanel.xml @@ -74,6 +74,14 @@ } else { f(); } + + if(this.hasAttribute("noautohide")) { + var listener = function() { + panel.hidePopup(); + panel.removeEventListener("click", listener, false); + } + panel.addEventListener("click", listener, false); + } ]]> @@ -87,7 +95,7 @@ - + diff --git a/chrome/content/zotero/overlay.xul b/chrome/content/zotero/overlay.xul index 0bfe94cc0..78c2ebcdc 100644 --- a/chrome/content/zotero/overlay.xul +++ b/chrome/content/zotero/overlay.xul @@ -52,7 +52,7 @@ - +