Code cosmetics
Bugfix uploadprogress Bugfix mature content Reenable read and unread feature
This commit is contained in:
@ -133,7 +133,7 @@
|
||||
// Replace the contents of the form, with the returned html
|
||||
if (xhr.status === 422) {
|
||||
var newHtml = $.parseHTML(xhr.responseText);
|
||||
this.replaceForrm(newHtml);
|
||||
this.replaceForm(newHtml);
|
||||
this.$modal.modal("hide");
|
||||
}
|
||||
// Write the error response to the document.
|
||||
@ -170,7 +170,7 @@
|
||||
replaceForm: function(html) {
|
||||
var newForm;
|
||||
var formId = this.$form.attr("id");
|
||||
if (typeof(formId) !== "undefined") {
|
||||
if (typeof formId !== "undefined") {
|
||||
newForm = $(html).find("#" + formId);
|
||||
} else {
|
||||
newForm = $(html).find("form");
|
||||
|
Reference in New Issue
Block a user