From 511eda7b8680044646e40bb0b6e11c1f949a0c3e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 31 Aug 2006 08:23:24 +0000 Subject: [PATCH] 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 --- chrome/chromeFiles/content/scholar/itemPane.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chrome/chromeFiles/content/scholar/itemPane.js b/chrome/chromeFiles/content/scholar/itemPane.js index 6bd75a370..f4c6c5c74 100644 --- 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 = {};