[open-ils-commits] r14033 - trunk/Open-ILS/xul/staff_client/server/cat (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Sep 17 10:29:47 EDT 2009
Author: phasefx
Date: 2009-09-17 10:29:45 -0400 (Thu, 17 Sep 2009)
New Revision: 14033
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
Log:
fix Unset for circ modifier in Item Attribute Editor
Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js 2009-09-17 01:54:21 UTC (rev 14032)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js 2009-09-17 14:29:45 UTC (rev 14033)
@@ -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