[open-ils-commits] r19273 - trunk/Open-ILS/xul/staff_client/server/serial (dbwells)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jan 24 18:03:21 EST 2011
Author: dbwells
Date: 2011-01-24 18:03:15 -0500 (Mon, 24 Jan 2011)
New Revision: 19273
Modified:
trunk/Open-ILS/xul/staff_client/server/serial/sdist_editor.js
Log:
Correct for over-zealous sdist editor field display code
Modified: trunk/Open-ILS/xul/staff_client/server/serial/sdist_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/serial/sdist_editor.js 2011-01-24 22:14:57 UTC (rev 19272)
+++ trunk/Open-ILS/xul/staff_client/server/serial/sdist_editor.js 2011-01-24 23:03:15 UTC (rev 19273)
@@ -109,8 +109,8 @@
'render_call_number' : function(cn) {
var obj = this;
- if (cn === null) {
- return "<Unset>";
+ 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 @@
'render_unit_template' : function(ut) {
var obj = this;
- if (ut === null) {
- return "<Unset>";
+ 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 @@
'render_record_entry' : function(sre) {
var obj = this;
var sre_id;
- if (sre === null) {
- return "<Unset>";
+ if (sre == null) { // true for both 'null' AND undefined
+ return '';
} else if (typeof sre != 'object') {
sre_id = sre;
} else {
More information about the open-ils-commits
mailing list