From 2b8c2b55d896ecd5a40cac8e3b9c36ff21aeb754 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 22 Feb 2006 19:39:32 +0000 Subject: [PATCH] return the retrieve_ids (given with each appended row) for the list git-svn-id: svn://svn.open-ils.org/ILS/trunk@3167 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../staff_client/chrome/content/util/list.js | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 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 cb6f2ed20a..0eb8c952a3 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -313,7 +313,7 @@ util.list.prototype = { 'dump' : function(params) { switch(this.node.nodeName) { case 'tree' : return this._dump_tree(params); break; - default: throw('NYI: Need ._init() for ' + this.node.nodeName); break; + default: throw('NYI: Need .dump() for ' + this.node.nodeName); break; } }, @@ -329,6 +329,23 @@ util.list.prototype = { dump.push( row ); } return dump; - } + }, + + 'dump_retrieve_ids' : function(params) { + switch(this.node.nodeName) { + case 'tree' : return this._dump_retrieve_ids_tree(params); break; + default: throw('NYI: Need .dump_retrieve_ids() for ' + this.node.nodeName); break; + } + }, + + '_dump_retrieve_ids_tree' : function(params) { + var dump = []; + for (var i = 0; i < this.treechildren.childNodes.length; i++) { + var treeitem = this.treechildren.childNodes[i]; + dump.push( treeitem.getAttribute('retrieve_id') ); + } + return dump; + }, + } dump('exiting util.list.js\n'); -- 2.43.2