www

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

commit 511eda7b8680044646e40bb0b6e11c1f949a0c3e
parent 2f364432efc730b0b590d89849ffe69facd14ad5
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 31 Aug 2006 08:23:24 +0000

Closes #126, Editing oddities

blur() isn't called automatically when clicking directly off a field to another item in the middle pane, so we force it


Diffstat:
Mchrome/chromeFiles/content/scholar/itemPane.js | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/chrome/chromeFiles/content/scholar/itemPane.js b/chrome/chromeFiles/content/scholar/itemPane.js @@ -84,6 +84,17 @@ var ScholarItemPane = new function() */ function viewItem(thisItem) { + // Force blur() when clicking off a textbox to another item in middle + // pane, since for some reason it's not being called automatically + if (_itemBeingEdited && _itemBeingEdited!=thisItem) + { + var boxes = _dynamicFields.getElementsByTagName('textbox'); + if (boxes.length==1) + { + boxes[0].inputField.blur(); + } + } + _itemBeingEdited = thisItem; _loaded = {};