Skip to content

Commit

Permalink
Adds an error message for an outright failure on an ajax modal.
Browse files Browse the repository at this point in the history
Fixes bug 971965.

Change-Id: I5d4e015701b922cfbcec26c13b18d7a0b8919f99
  • Loading branch information
gabrielhurley authored and jeblair committed Apr 3, 2012
1 parent d33da79 commit a491b2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions horizon/static/horizon/js/modals.js
Expand Up @@ -124,6 +124,10 @@ horizon.addInitFunction(function() {
location.reload(true);
}
}
else {
// Generic error handler. Really generic.
horizon.alert("error", "An error occurred. Please try again.");
}
},
success: horizon.modals.success
});
Expand Down

0 comments on commit a491b2a

Please sign in to comment.