display <Unset> instead of null
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Jun 2006 04:26:51 +0000 (04:26 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Jun 2006 04:26:51 +0000 (04:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@4777 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_editor.js

index 5468131..09e9b05 100644 (file)
@@ -420,7 +420,7 @@ g.panes_and_field_names = {
 [      [
                "Alert Message",
                {
-                       render: 'fm.alert_message();',
+                       render: 'fm.alert_message() == null ? "<Unset>" : fm.alert_message()',
                        input: 'c = function(v){ g.apply("alert_message",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);',
                }
        ],