From: Thomas Berezansky Date: Tue, 23 Aug 2011 16:06:55 +0000 (-0400) Subject: Expose sort values from lists X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=49224ed91e8e50171d4a80b98929a2a864d40651;p=contrib%2FConifer.git Expose sort values from lists Specifically useful for things like receipt templates. Signed-off-by: Thomas Berezansky Signed-off-by: Jason Etheridge --- 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 );