Author: jfthomps
Date: Thu Nov 15 14:23:25 2012
New Revision: 1409801

URL: http://svn.apache.org/viewvc?rev=1409801&view=rev
Log:
VCL-619
usenls may be undefined in _() function in requests.js

code.js: modified _() - corrected test for usenls being undefined

Modified:
    vcl/branches/vcl-2.3-bugfixes/web/js/code.js

Modified: vcl/branches/vcl-2.3-bugfixes/web/js/code.js
URL: 
http://svn.apache.org/viewvc/vcl/branches/vcl-2.3-bugfixes/web/js/code.js?rev=1409801&r1=1409800&r2=1409801&view=diff
==============================================================================
--- vcl/branches/vcl-2.3-bugfixes/web/js/code.js (original)
+++ vcl/branches/vcl-2.3-bugfixes/web/js/code.js Thu Nov 15 14:23:25 2012
@@ -36,7 +36,9 @@ function setBrowser() {
 setBrowser();
 
 function _(str) {
-       if(! usenls || ! (str in nlsmessages))
+       if(typeof usenls == 'undefined' ||
+          typeof nlsmessages == 'undefined' ||
+          ! (str in nlsmessages))
                return str;
        return nlsmessages[str];
 }


Reply via email to