deprecate to_top, make it the default
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Jan 2007 16:37:13 +0000 (16:37 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Jan 2007 16:37:13 +0000 (16:37 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6830 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index e7f9810..4840db0 100644 (file)
@@ -337,7 +337,7 @@ util.list.prototype = {
 
                var treeitem = document.createElement('treeitem');
                treeitem.setAttribute('retrieve_id',params.retrieve_id);
-               if (typeof params.to_top == 'undefined') {
+               if (typeof params.to_bottom != 'undefined') {
                        treechildren_node.appendChild( treeitem );
                } else {
                        if (treechildren_node.firstChild) {
@@ -443,7 +443,7 @@ util.list.prototype = {
 
                                if (obj.trim_list && obj.row_count.total >= obj.trim_list) {
                                        // Remove oldest row
-                                       if (typeof params.to_top == 'undefined') {
+                                       if (typeof params.to_bottom != 'undefined') {
                                                treechildren_node.removeChild( treechildren_node.firstChild );
                                        } else {
                                                treechildren_node.removeChild( treechildren_node.lastChild );