[open-ils-commits] r11244 - branches/rel_1_2/Open-ILS/xul/staff_client/server/cat
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 17 14:17:26 EST 2008
Author: phasefx
Date: 2008-11-17 14:17:22 -0500 (Mon, 17 Nov 2008)
New Revision: 11244
Modified:
branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/copy_editor.js
Log:
add option to copy editor for Remove Circulate as Type
Modified: branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/copy_editor.js 2008-11-17 19:14:37 UTC (rev 11243)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/copy_editor.js 2008-11-17 19:17:22 UTC (rev 11244)
@@ -844,7 +844,7 @@
"Circulate as Type",
{
render: 'fm.circ_as_type() == null ? "<Unset>" : g.data.hash.citm[ fm.circ_as_type() ].value()',
- input: 'c = function(v){ g.apply("circ_as_type",v); if (typeof post_c == "function") post_c(v); }; x = util.widgets.make_menulist( util.functional.map_list( g.data.list.citm, function(n){return [ n.code() + " - " + n.value(), n.code()];} ).sort() ); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
+ input: 'c = function(v){ g.apply("circ_as_type",v); if (typeof post_c == "function") post_c(v); }; x = util.widgets.make_menulist( [ [ "<Remove Circulate as Type>", "<HACK:KLUDGE:NULL>" ] ].concat( util.functional.map_list( g.data.list.citm, function(n){return [ n.code() + " - " + n.value(), n.code()];} ).sort() ) ); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
}
],
[
More information about the open-ils-commits
mailing list