equal
deleted
inserted
replaced
188 af_current = false; |
188 af_current = false; |
189 // parse the JSON response |
189 // parse the JSON response |
190 var response = String(ajax.responseText) + ' '; |
190 var response = String(ajax.responseText) + ' '; |
191 if ( response.substr(0,1) != '{' ) |
191 if ( response.substr(0,1) != '{' ) |
192 { |
192 { |
193 new messagebox(MB_OK|MB_ICONSTOP, 'Invalid response', 'Invalid or unexpected JSON response from server:<pre>' + ajax.responseText + '</pre>'); |
193 new MessageBox(MB_OK|MB_ICONSTOP, 'Invalid response', 'Invalid or unexpected JSON response from server:<pre>' + ajax.responseText + '</pre>'); |
194 return false; |
194 return false; |
195 } |
195 } |
196 if ( $dynano(afobj.field_id).object.value.length < 3 ) |
196 if ( $dynano(afobj.field_id).object.value.length < 3 ) |
197 return false; |
197 return false; |
198 var resp_json = parseJSON(response); |
198 var resp_json = parseJSON(response); |