From: pines Date: Thu, 8 Feb 2007 03:02:23 +0000 (+0000) Subject: change default list behavior back to append to bottom, and change checkout specifical... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=27dfebc352aa624fc78acebc9b99ea8818729842;p=Evergreen.git change default list behavior back to append to bottom, and change checkout specifically to append to top git-svn-id: svn://svn.open-ils.org/ILS/trunk@6916 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 4840db0b77..f222b04cfc 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -337,7 +337,8 @@ util.list.prototype = { var treeitem = document.createElement('treeitem'); treeitem.setAttribute('retrieve_id',params.retrieve_id); - if (typeof params.to_bottom != 'undefined') { + //if (typeof params.to_bottom != 'undefined') { + if (typeof params.to_top == 'undefined') { treechildren_node.appendChild( treeitem ); } else { if (treechildren_node.firstChild) { @@ -443,7 +444,8 @@ util.list.prototype = { if (obj.trim_list && obj.row_count.total >= obj.trim_list) { // Remove oldest row - if (typeof params.to_bottom != 'undefined') { + //if (typeof params.to_bottom != 'undefined') { + if (typeof params.to_top == 'undefined') { treechildren_node.removeChild( treechildren_node.firstChild ); } else { treechildren_node.removeChild( treechildren_node.lastChild ); diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index 2ce2dcc85f..1b3e674308 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -429,7 +429,8 @@ circ.checkout.prototype = { 'mvr' : checkout.payload.record, 'acp' : checkout.payload.copy } - } + }, + 'to_top' : true, //I could override map_row_to_column here } );