From: phasefx Date: Mon, 17 Nov 2008 19:17:22 +0000 (+0000) Subject: add option to copy editor for Remove Circulate as Type X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=36944581712bdda56d679bd813b4faaa703dd137;p=Evergreen.git add option to copy editor for Remove Circulate as Type git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@11244 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.js b/Open-ILS/xul/staff_client/server/cat/copy_editor.js index dc69407d15..af7110b5f7 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -844,7 +844,7 @@ g.panes_and_field_names = { "Circulate as Type", { render: 'fm.circ_as_type() == null ? "" : 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( [ [ "", "" ] ].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);', } ], [