Fix collection delete error introduced by r1146

This commit is contained in:
Dan Stillman 2007-02-07 14:34:10 +00:00
parent febd827a90
commit 8aa060b755

View File

@ -510,7 +510,7 @@ var ZoteroPane = new function()
this.itemsView.unregister();
}
this.clearQuicksearch();
document.getElementById('zotero-tb-search').value = "";
if (this.collectionsView.selection.count == 1 && this.collectionsView.selection.currentIndex != -1) {
var itemgroup = this.collectionsView._getItemAtRow(this.collectionsView.selection.currentIndex);