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

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Dec 10 13:36:35 EST 2010


Author: phasefx
Date: 2010-12-10 13:36:32 -0500 (Fri, 10 Dec 2010)
New Revision: 18970

Modified:
   branches/rel_1_6/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/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- branches/rel_1_6/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2010-12-10 17:22:47 UTC (rev 18969)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2010-12-10 18:36:32 UTC (rev 18970)
@@ -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