From: dbwells Date: Mon, 24 Jan 2011 23:03:15 +0000 (+0000) Subject: Correct for over-zealous sdist editor field display code X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7fbe5ddba3d6e7c10ef9a52d1e5c3a610a838d2a;p=evergreen%2Ftadl.git Correct for over-zealous sdist editor field display code git-svn-id: svn://svn.open-ils.org/ILS/trunk@19273 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/serial/sdist_editor.js b/Open-ILS/xul/staff_client/server/serial/sdist_editor.js index 95fd9a51d4..4dc73266ff 100644 --- a/Open-ILS/xul/staff_client/server/serial/sdist_editor.js +++ b/Open-ILS/xul/staff_client/server/serial/sdist_editor.js @@ -109,8 +109,8 @@ serial.sdist_editor.prototype = { 'render_call_number' : function(cn) { var obj = this; - if (cn === null) { - return ""; + if (cn == null) { // true for both 'null' AND undefined + return ''; } else if (typeof cn != 'object') { return obj.acn_label_map[cn]; } else { @@ -120,8 +120,8 @@ serial.sdist_editor.prototype = { 'render_unit_template' : function(ut) { var obj = this; - if (ut === null) { - return ""; + if (ut == null) { // true for both 'null' AND undefined + return ''; } else if (typeof ut != 'object') { return obj.act_name_map[ut]; } else { @@ -132,8 +132,8 @@ serial.sdist_editor.prototype = { 'render_record_entry' : function(sre) { var obj = this; var sre_id; - if (sre === null) { - return ""; + if (sre == null) { // true for both 'null' AND undefined + return ''; } else if (typeof sre != 'object') { sre_id = sre; } else {