equal
deleted
inserted
replaced
162 unObj.onblur = function() { destroyUsernameDropdowns(); } |
162 unObj.onblur = function() { destroyUsernameDropdowns(); } |
163 |
163 |
164 var response = String(ajax.responseText) + ' '; |
164 var response = String(ajax.responseText) + ' '; |
165 if ( response.substr(0,1) != '{' ) |
165 if ( response.substr(0,1) != '{' ) |
166 { |
166 { |
167 new messagebox(MB_OK|MB_ICONSTOP, 'Invalid response', 'Invalid or unexpected JSON response from server:<pre>' + ajax.responseText + '</pre>'); |
167 new MessageBox(MB_OK|MB_ICONSTOP, 'Invalid response', 'Invalid or unexpected JSON response from server:<pre>' + ajax.responseText + '</pre>'); |
168 return false; |
168 return false; |
169 } |
169 } |
170 |
170 |
171 response = parseJSON(response); |
171 response = parseJSON(response); |
172 var errorstring = false; |
172 var errorstring = false; |