From: pines Date: Thu, 22 Feb 2007 21:44:42 +0000 (+0000) Subject: auto-select top row on append X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6eee83924fc7a93a9c116531a4f47dac70b69390;p=Evergreen.git 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 --- 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);