2. Also changed the text in different cases for the error.
Code reviewed by Chin Hua.
This commit is contained in:
tankchintan 2011-07-21 20:31:36 +00:00
parent 7a3f04be63
commit 54b390b851
7 changed files with 137 additions and 36 deletions

View file

@ -74,11 +74,11 @@ var EntityVisModeController = Class.extend({
$("#" + responseContainerID).unblock();
if (data.error) {
if (ERROR_DISPLAY_WIDGET.isErrorConditionTriggered(data)) {
$("#map-of-science-response").hide();
$("#error-container").show();
ERROR_DISPLAY_WIDGET.show(ENTITY_TYPE, data);
return;
}
}
data = data[0];