From 49224ed91e8e50171d4a80b98929a2a864d40651 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Tue, 23 Aug 2011 12:06:55 -0400 Subject: [PATCH] Expose sort values from lists Specifically useful for things like receipt templates. Signed-off-by: Thomas Berezansky Signed-off-by: Jason Etheridge --- Open-ILS/xul/staff_client/chrome/content/util/list.js | 4 ++++ 1 file changed, 4 insertions(+) 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 85a34d0479..4013eff722 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -1195,6 +1195,10 @@ util.list.prototype = { debugger; } else { row[ obj.columns[j].id ] = treerow.childNodes[j].getAttribute('label'); + var sort = treerow.childNodes[j].getAttribute('sort_value'); + if(sort) { + row[ obj.columns[j].id + '_sort_value' ] = sort; + } } } dump.push( row ); -- 2.11.0