Don't dismiss icon first run guidance until clicked

This commit is contained in:
Simon Kornblith 2014-04-29 01:42:53 -04:00
parent ce9a77e688
commit 7841bb4327
2 changed files with 10 additions and 2 deletions

View file

@ -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);
}
]]>
</body>
</method>
@ -87,7 +95,7 @@
</implementation>
<content>
<xul:panel orient="horizontal" style="max-width: 400px" type="arrow" align="top">
<xul:panel orient="horizontal" style="max-width: 400px" type="arrow" align="top" xbl:inherits="noautohide">
<xul:image src="chrome://zotero/skin/zotero-new-z-48px.png" style="margin-right: 10px; width: 48px; height: 48px;"/>
<xul:description flex="1"></xul:description>
</xul:panel>

View file

@ -52,7 +52,7 @@
<toolbar id="zotero-toolbar" nowindowdrag="true"/>
<vbox id="appcontent">
<zoteroguidancepanel id="zotero-toolbar-button-guidance" about="toolbarButton" for="zotero-toolbar-button" position="bottomcenter topleft" delay="1000" foregroundonly="true"/>
<zoteroguidancepanel id="zotero-toolbar-button-guidance" about="toolbarButton" for="zotero-toolbar-button" position="bottomcenter topleft" delay="1000" foregroundonly="true" noautohide="true"/>
<!-- onmouseup shouldn't be necessary but seems to help prevent tag selector from sometimes going off the screen -->
<splitter id="zotero-splitter" resizebefore="closest" resizeafter="closest" hidden="true"
onmouseup="ZoteroPane.updateTagSelectorSize()"/>