Merge "Use identity operator in horizon.modals.js"

This commit is contained in:
Jenkins 2014-09-30 08:54:40 +00:00 committed by Gerrit Code Review
commit d1c9ef5c2f

View File

@ -233,7 +233,7 @@ horizon.addInitFunction(function() {
var redirect_header = jqXHR.getResponseHeader("X-Horizon-Location"),
add_to_field_header = jqXHR.getResponseHeader("X-Horizon-Add-To-Field"),
json_data, field_to_update;
if (redirect_header == null) {
if (redirect_header === null) {
$('.ajax-modal, .dropdown-toggle').removeAttr("disabled");
}
$form.closest(".modal").modal("hide");