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:
parent
f6d9a42644
commit
719ec8c694
|
@ -218,7 +218,8 @@ var ZoteroPane = new function()
|
|||
document.getElementById('zotero-splitter').setAttribute('hidden', !visible);
|
||||
|
||||
if (visible) {
|
||||
document.getElementById('zotero-pane').click();
|
||||
// Focus the quicksearch on pane open
|
||||
setTimeout("document.getElementById('zotero-tb-search').inputField.select();", 1);
|
||||
}
|
||||
else {
|
||||
document.getElementById('content').setAttribute('collapsed', false);
|
||||
|
|
|
@ -331,6 +331,10 @@ Zotero.ItemTreeView.prototype.notify = function(action, type, ids)
|
|||
}
|
||||
|
||||
this.rememberSelection(savedSelection);
|
||||
|
||||
if (activeWindow) {
|
||||
this.selectItem(ids[0]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -554,8 +558,9 @@ Zotero.ItemTreeView.prototype.sort = function()
|
|||
}
|
||||
|
||||
// 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) {
|
||||
var cmp;
|
||||
|
|
Loading…
Reference in New Issue
Block a user