summaryrefslogtreecommitdiff
path: root/horizon/static/horizon/js/horizon.messages.js
diff options
context:
space:
mode:
Diffstat (limited to 'horizon/static/horizon/js/horizon.messages.js')
-rw-r--r--horizon/static/horizon/js/horizon.messages.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/horizon/static/horizon/js/horizon.messages.js b/horizon/static/horizon/js/horizon.messages.js
index 94d654efe..2e8484585 100644
--- a/horizon/static/horizon/js/horizon.messages.js
+++ b/horizon/static/horizon/js/horizon.messages.js
@@ -93,14 +93,14 @@ horizon.autoDismissAlert = function ($alert) {
horizon.addInitFunction(function () {
// Bind AJAX message handling.
$(document).ajaxComplete(function(event, request){
- var message_array = $.parseJSON(horizon.ajax.get_messages(request));
+ var message_array = JSON.parse(horizon.ajax.get_messages(request));
$(message_array).each(function (index, item) {
horizon.alert(item[0], item[1], item[2]);
});
});
// Dismiss alert messages when moving on to a new type of action.
- $('a.ajax-modal').click(function() {
+ $('a.ajax-modal').on('click', function() {
horizon.clearAllMessages();
});