Always show "Reindex item", even if item is indexed, and flicker the refresh icon briefly on click to show that it's doing something

This commit is contained in:
Dan Stillman 2009-03-17 07:59:41 +00:00
parent 468cd16534
commit 0df7f4afd4
2 changed files with 4 additions and 1 deletions

View File

@ -508,7 +508,7 @@
<hbox id="index-box">
<label id="index-status"/>
<toolbarbutton id="reindex" oncommand="ZoteroPane.reindexItem()"/>
<toolbarbutton id="reindex" oncommand="this.hidden = true; setTimeout(function () { ZoteroPane.reindexItem(); }, 50)"/>
</hbox>
<zoteronoteeditor id="note-editor" notitle="1" flex="1"/>

View File

@ -830,6 +830,9 @@ Zotero.Fulltext = new function(){
case this.INDEX_STATE_UNAVAILABLE:
case this.INDEX_STATE_UNINDEXED:
case this.INDEX_STATE_PARTIAL:
// TODO: automatically reindex already-indexed attachments?
case this.INDEX_STATE_INDEXED:
return true;
}
}