www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit eba2974ce18404466772992fc38458904e6bd32b
parent ea72af8be86efb87e9c28efd37e1d9ad24454448
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  8 Sep 2006 01:23:22 +0000

Fixes #251, UI refresh problem with page snapshot

Also fixes snapshot add breakage when another tab is selected caused by blur() fix from other day


Diffstat:
Mchrome/chromeFiles/content/scholar/itemPane.js | 2+-
Mchrome/chromeFiles/content/scholar/xpcom/itemTreeView.js | 4++++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/chrome/chromeFiles/content/scholar/itemPane.js b/chrome/chromeFiles/content/scholar/itemPane.js @@ -108,7 +108,7 @@ var ScholarItemPane = new function() break; } - if (boxes.length==1) + if (boxes && boxes.length==1) { boxes[0].inputField.blur(); } diff --git a/chrome/chromeFiles/content/scholar/xpcom/itemTreeView.js b/chrome/chromeFiles/content/scholar/xpcom/itemTreeView.js @@ -176,6 +176,10 @@ Scholar.ItemTreeView.prototype.notify = function(action, type, ids) if(action == 'add') { if (ids.length===1){ + // Reset to Info tab + this._treebox.treeBody.ownerDocument. + getElementById('scholar-view-tabs').selectedIndex = 0; + this.selectItem(ids[0]); } }