From 415a376121fac168ab70ce228032ebd28a94eb30 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 9 Dec 2005 16:28:22 +0000 Subject: [PATCH] rename main.list to util.list git-svn-id: svn://svn.open-ils.org/ILS/trunk@2302 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../content/evergreen/{main => util}/list.js | 14 +++++++------- Open-ILS/xul/staff_client/server/circ/checkout.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) rename Open-ILS/xul/staff_client/chrome/content/evergreen/{main => util}/list.js (89%) diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/list.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/util/list.js similarity index 89% rename from Open-ILS/xul/staff_client/chrome/content/evergreen/main/list.js rename to Open-ILS/xul/staff_client/chrome/content/evergreen/util/list.js index 17a3916d2f..ae42f0afe1 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/util/list.js @@ -1,7 +1,7 @@ -dump('entering main/list.js\n'); +dump('entering util.list.js\n'); if (typeof main == 'undefined') main = {}; -main.list = function (id) { +util.list = function (id) { this.node = document.getElementById(id); @@ -19,7 +19,7 @@ main.list = function (id) { return this; }; -main.list.prototype = { +util.list.prototype = { 'init' : function (params) { @@ -28,7 +28,7 @@ main.list.prototype = { this.prebuilt = false; if (typeof params.prebuilt != 'undefined') this.prebuilt = params.prebuilt; - if (typeof params.columns == 'undefined') throw('main.list.init: No columns'); + if (typeof params.columns == 'undefined') throw('util.list.init: No columns'); this.columns = params.columns; if (this.prebuilt) { @@ -65,9 +65,9 @@ main.list.prototype = { 'append_to_tree' : function (params) { - if (typeof params.row == 'undefined') throw('main.list.append: Object must contain a row'); + if (typeof params.row == 'undefined') throw('util.list.append: Object must contain a row'); - dump('main.list.append: params = ' + js2JSON(params) + '\n'); + dump('util.list.append: params = ' + js2JSON(params) + '\n'); var treeitem = document.createElement('treeitem'); this.treechildren.appendChild( treeitem ); @@ -100,4 +100,4 @@ main.list.prototype = { } } -dump('exiting main/list.js\n'); +dump('exiting util.list.js\n'); diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index 6ffb1b70a0..4cb42050d6 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -19,7 +19,7 @@ circ.checkout.prototype = { obj.session = params['session']; obj.patron_id = params['patron_id']; - JSAN.use('main.list'); obj.list = new main.list('checkout_list'); + JSAN.use('util.list'); obj.list = new util.list('checkout_list'); //FIXME//getString used to wrap StringBundles, but we need to do the entity/div thing function getString(s) { return obj.OpenILS.data.entities[s]; } obj.list.init( -- 2.43.2