From fb44d7261bd08ec30ed16b6316753516582ad0bb Mon Sep 17 00:00:00 2001 From: pines Date: Sat, 26 Aug 2006 07:56:12 +0000 Subject: [PATCH] prepend certain lists git-svn-id: svn://svn.open-ils.org/ILS/trunk@5706 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/util/list.js | 10 +++++++++- Open-ILS/xul/staff_client/server/circ/checkin.js | 3 ++- Open-ILS/xul/staff_client/server/circ/copy_status.js | 3 ++- Open-ILS/xul/staff_client/server/circ/in_house_use.js | 3 ++- 4 files changed, 15 insertions(+), 4 deletions(-) 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 11a1eae8cd..d803248b16 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -324,7 +324,15 @@ util.list.prototype = { var treeitem = document.createElement('treeitem'); treeitem.setAttribute('retrieve_id',params.retrieve_id); - treechildren_node.appendChild( treeitem ); + if (typeof params.to_top == 'undefined') { + treechildren_node.appendChild( treeitem ); + } else { + if (treechildren_node.firstChild) { + treechildren_node.insertBefore( treeitem, treechildren_node.firstChild ); + } else { + treechildren_node.appendChild( treeitem ); + } + } var treerow = document.createElement('treerow'); treeitem.appendChild( treerow ); treerow.setAttribute('retrieve_id',params.retrieve_id); diff --git a/Open-ILS/xul/staff_client/server/circ/checkin.js b/Open-ILS/xul/staff_client/server/circ/checkin.js index 654639c2f3..970308e8d3 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkin.js +++ b/Open-ILS/xul/staff_client/server/circ/checkin.js @@ -280,7 +280,8 @@ circ.checkin.prototype = { 'route_to' : checkin.route_to, 'message' : checkin.message, } - } + }, + 'to_top' : true, //I could override map_row_to_column here } ); diff --git a/Open-ILS/xul/staff_client/server/circ/copy_status.js b/Open-ILS/xul/staff_client/server/circ/copy_status.js index ab4719f913..f4a7d1b098 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_status.js +++ b/Open-ILS/xul/staff_client/server/circ/copy_status.js @@ -268,7 +268,8 @@ circ.copy_status.prototype = { 'mvr' : my_mvr, 'acp' : copy, } - } + }, + 'to_top' : true, } ); obj.controller.view.copy_status_barcode_entry_textbox.value = ''; diff --git a/Open-ILS/xul/staff_client/server/circ/in_house_use.js b/Open-ILS/xul/staff_client/server/circ/in_house_use.js index 1fac7bd261..14d4b65e8d 100644 --- a/Open-ILS/xul/staff_client/server/circ/in_house_use.js +++ b/Open-ILS/xul/staff_client/server/circ/in_house_use.js @@ -250,7 +250,8 @@ circ.in_house_use.prototype = { 'acp' : copy, 'uses' : result.length, } - } + }, + 'to_top' : true, //I could override map_row_to_column here } ); -- 2.11.0