Display a warning sign over the Zotero logo in the status bar if there's a startup error

This commit is contained in:
Dan Stillman 2006-11-22 15:51:55 +00:00
parent 6ff2168729
commit 7a1339158a
3 changed files with 9 additions and 5 deletions

View File

@ -243,15 +243,14 @@
<statusbar id="status-bar">
<statusbarpanel id="zotero-status-bar-icon"
src="chrome://zotero/skin/zotero_logo_18px.png"
class="statusbarpanel-iconic" onclick="ZoteroPane.toggleDisplay();"
hidden="true"/>
class="statusbarpanel-iconic" onclick="ZoteroPane.toggleDisplay();"/>
</statusbar>
<script>
window.addEventListener('load', function(e){
if (Zotero){
document.getElementById('zotero-status-bar-icon').setAttribute('hidden', 'false');
if (!Zotero){
document.getElementById('zotero-status-bar-icon').setAttribute('error', 'true');
document.getElementById('zotero-status-bar-icon').setAttribute('tooltiptext', 'There was an error starting Zotero.');
}
}, false);
</script>

View File

@ -3,6 +3,11 @@
width: 49px;
margin:0 0 -1px;
padding:0 5px 1px;
list-style-image: url(chrome://zotero/skin/zotero_logo_18px.png);
}
#zotero-status-bar-icon[error=true]
{
list-style-image: url(chrome://zotero/skin/zotero_logo_18px_error.png);
}
#zotero-pane

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB