Code cosmetics

Bugfix uploadprogress
Bugfix mature content
Reenable read and unread feature
This commit is contained in:
Ozzieisaacs
2019-03-05 17:34:51 +01:00
parent 0224d45961
commit f483ca3214
8 changed files with 78 additions and 81 deletions

View File

@ -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");