Miscellaneous updates:

- Display items with empty titles at beginning of list (since having new notes and items appear at the bottom of the list is distracting)
- On item modify, select item if in active window (which hopefully doesn't have any side effects, though I'm not sure why I ever changed this)
- Focus quicksearch bar on Z pane open
This commit is contained in:
Dan Stillman 2007-03-06 18:40:57 +00:00
parent f6d9a42644
commit 719ec8c694
2 changed files with 9 additions and 3 deletions

View File

@ -218,7 +218,8 @@ var ZoteroPane = new function()
document.getElementById('zotero-splitter').setAttribute('hidden', !visible); document.getElementById('zotero-splitter').setAttribute('hidden', !visible);
if (visible) { if (visible) {
document.getElementById('zotero-pane').click(); // Focus the quicksearch on pane open
setTimeout("document.getElementById('zotero-tb-search').inputField.select();", 1);
} }
else { else {
document.getElementById('content').setAttribute('collapsed', false); document.getElementById('content').setAttribute('collapsed', false);

View File

@ -331,6 +331,10 @@ Zotero.ItemTreeView.prototype.notify = function(action, type, ids)
} }
this.rememberSelection(savedSelection); this.rememberSelection(savedSelection);
if (activeWindow) {
this.selectItem(ids[0]);
}
} }
else else
{ {
@ -554,8 +558,9 @@ Zotero.ItemTreeView.prototype.sort = function()
} }
// Hash table of fields for which rows with empty values should be displayed last // Hash table of fields for which rows with empty values should be displayed last
// - Not currently used var emptyFirst = {
var emptyFirst = {}; title: true
};
function columnSort(a,b) { function columnSort(a,b) {
var cmp; var cmp;