message = "Request failed.";
}
this.modal.find('.modal-error').
- html('<div class="alert alert-danger">' + message + '</div>').
- show();
+ html('<div class="alert alert-danger"></div>').
+ show().
+ children().text(message);
}).
done(function(data, status, jqxhr) {
var event_name = this.action_data.success;
return false;
}
$('<a />').
- attr('href', $form.attr('data-search-modal')).
+ attr('data-remote-href', $form.attr('data-search-modal')).
attr('data-remote', 'true').
attr('data-method', 'GET').
hide().