summaryrefslogtreecommitdiff
path: root/horizon
diff options
context:
space:
mode:
Diffstat (limited to 'horizon')
-rw-r--r--horizon/static/horizon/js/horizon.messages.js2
-rw-r--r--horizon/static/horizon/js/horizon.modals.js2
2 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..be38b258a 100644
--- a/horizon/static/horizon/js/horizon.messages.js
+++ b/horizon/static/horizon/js/horizon.messages.js
@@ -93,7 +93,7 @@ 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]);
});
diff --git a/horizon/static/horizon/js/horizon.modals.js b/horizon/static/horizon/js/horizon.modals.js
index b31a9bbf9..090253e02 100644
--- a/horizon/static/horizon/js/horizon.modals.js
+++ b/horizon/static/horizon/js/horizon.modals.js
@@ -346,7 +346,7 @@ horizon.addInitFunction(horizon.modals.init = function() {
} else if (redirect_header) {
location.href = redirect_header;
} else if (add_to_field_header) {
- json_data = $.parseJSON(data);
+ json_data = JSON.parse(data);
field_to_update = $("#" + add_to_field_header);
field_to_update.append("<option value='" + json_data[0] + "'>" + json_data[1] + "</option>");
field_to_update.change();