s/perl/javascript/
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Jun 2010 22:46:02 +0000 (22:46 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Jun 2010 22:46:02 +0000 (22:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16567 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/main/ws_info.xul

index a497827..35fc3a8 100644 (file)
@@ -99,7 +99,7 @@
             g.my_libs_ou_hash = {};
             g.my_deduped_libs = [];
             for (var i = 0; i < g.my_libs.length; i++) {
-                if (! defined g.my_libs_shortname_hash[ g.my_libs[i].id() ]) {
+                if (typeof g.my_libs_shortname_hash[ g.my_libs[i].id() ] == 'undefined') {
                     g.my_libs_shortname_hash[ g.my_libs[i].id() ] = g.my_libs[i].shortname();
                     g.my_libs_ou_hash[ g.my_libs[i].id() ] = function(o){return o;}(g.my_libs[i]);
                     g.my_deduped_libs.push( g.my_libs[i] );