change default list behavior back to append to bottom, and change checkout specifical...
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Feb 2007 03:02:23 +0000 (03:02 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Feb 2007 03:02:23 +0000 (03:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6916 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/list.js
Open-ILS/xul/staff_client/server/circ/checkout.js

index 4840db0..f222b04 100644 (file)
@@ -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 );
index 2ce2dcc..1b3e674 100644 (file)
@@ -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
                                }
                        );