From 6eee83924fc7a93a9c116531a4f47dac70b69390 Mon Sep 17 00:00:00 2001 From: pines Date: Thu, 22 Feb 2007 21:44:42 +0000 Subject: [PATCH] auto-select top row on append git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@7003 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/util/list.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/list.js b/Open-ILS/xul/staff_client/chrome/content/util/list.js index f222b04cfc..283716b764 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -347,6 +347,9 @@ util.list.prototype = { treechildren_node.appendChild( treeitem ); } } + if (typeof params.no_auto_select == 'undefined') { + try { obj.node.view.selection.select(0); } catch(E) { obj.error.sdump('D_ERROR','tree auto select: ' + E + '\n'); } + } var treerow = document.createElement('treerow'); treeitem.appendChild( treerow ); treerow.setAttribute('retrieve_id',params.retrieve_id); -- 2.11.0