From bf6f9a205f566b906a6627cef14bf668e9f9897b Mon Sep 17 00:00:00 2001 From: Gabriel Hurley Date: Mon, 2 Apr 2012 15:37:51 -0700 Subject: [PATCH] Adds an error message for an outright failure on an ajax modal. Fixes bug 971965. Change-Id: I5d4e015701b922cfbcec26c13b18d7a0b8919f99 --- horizon/static/horizon/js/modals.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/horizon/static/horizon/js/modals.js b/horizon/static/horizon/js/modals.js index 2db034f1bc1..95259b74a8d 100644 --- a/horizon/static/horizon/js/modals.js +++ b/horizon/static/horizon/js/modals.js @@ -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 });