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
This commit is contained in:
Dan Stillman 2006-08-31 08:23:24 +00:00
parent 2f364432ef
commit 511eda7b86

View File

@ -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 = {};