From: phasefx Date: Wed, 12 Jul 2006 16:27:25 +0000 (+0000) Subject: age protection in copy editor. "Remove Protection" is broken X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=555cd5e4c7d3dd8eac5b88e8b5055946ba67be6c;p=Evergreen.git age protection in copy editor. "Remove Protection" is broken git-svn-id: svn://svn.open-ils.org/ILS/trunk@4954 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 0183dc0f84..a1e83870b5 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -510,7 +510,14 @@ g.panes_and_field_names = { input: 'c = function(v){ g.apply("holdable",v); if (typeof post_c == "function") post_c(v); }; x = util.widgets.make_menulist( [ [ "Yes", "1" ], [ "No", "0" ] ] ); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);', } ], + [ + "Age Protection", + { + render: 'fm.age_protect() == null ? "" : ( typeof fm.age_protect() == "object" ? fm.age_protect().name() : g.data.hash.crahp[ fm.age_protect() ].name() )', + input: 'c = function(v){ g.apply("age_protect",v); if (typeof post_c == "function") post_c(v); }; x = util.widgets.make_menulist( [ [ "", null ] ].concat( util.functional.map_list( g.data.list.crahp, function(obj) { return [ obj.name(), obj.id() ]; }).sort() ) ); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);', + } + ], [ "Loan Duration", {