[open-ils-commits] r18972 - branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Dec 10 13:40:48 EST 2010


Author: phasefx
Date: 2010-12-10 13:40:45 -0500 (Fri, 10 Dec 2010)
New Revision: 18972

Modified:
   branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/copy_editor.js
Log:
backport r14033 from trunk for unsetting (nullifying) a circ modifier

Modified: branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2010-12-10 18:37:29 UTC (rev 18971)
+++ branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2010-12-10 18:40:45 UTC (rev 18972)
@@ -866,8 +866,7 @@
 		$('catStrings').getString('staff.cat.copy_editor.field.circulation_modifier.label'),
 		{	
 			render: 'fm.circ_modifier() == null ? $("catStrings").getString("staff.cat.copy_editor.field.unset_or_null") : fm.circ_modifier()',
-			/*input: 'c = function(v){ g.apply("circ_modifier",v); if (typeof post_c == "function") post_c(v); }; x = document.createElement("textbox"); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',*/
-			input: 'c = function(v){ g.apply("circ_modifier",v); if (typeof post_c == "function") post_c(v); }; x = util.widgets.make_menulist( util.functional.map_list( g.data.list.circ_modifier, function(obj) { return [ obj, obj ]; } ).sort() ); x.setAttribute("editable","true"); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
+            input: 'c = function(v){ g.apply("circ_modifier",v); if (typeof post_c == "function") post_c(v); }; x = util.widgets.make_menulist( [ [ $("catStrings").getString("staff.cat.copy_editor.field.unset_or_null"), "<HACK:KLUDGE:NULL>" ] ].concat( util.functional.map_list( g.data.list.circ_modifier, function(obj) { return [ obj, obj ]; } ).sort() ) ); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
 		}
 	],
 ],



More information about the open-ils-commits mailing list