Added list item status
This commit is contained in:
@ -71,9 +71,16 @@ export class AnimeNotifier {
|
||||
|
||||
// Update each of these asynchronously
|
||||
Promise.resolve().then(() => this.mountMountables())
|
||||
Promise.resolve().then(() => this.assignActions())
|
||||
Promise.resolve().then(() => this.lazyLoadImages())
|
||||
Promise.resolve().then(() => this.displayLocalDates())
|
||||
Promise.resolve().then(() => this.setSelectBoxValue())
|
||||
Promise.resolve().then(() => this.assignActions())
|
||||
}
|
||||
|
||||
setSelectBoxValue() {
|
||||
for(let element of document.getElementsByTagName("select")) {
|
||||
element.value = element.getAttribute("value")
|
||||
}
|
||||
}
|
||||
|
||||
displayLocalDates() {
|
||||
@ -229,7 +236,7 @@ export class AnimeNotifier {
|
||||
this.unmountMountables()
|
||||
this.loading(true)
|
||||
|
||||
return delay(300).then(() => {
|
||||
return delay(330).then(() => {
|
||||
request
|
||||
.then(html => this.app.setContent(html, true))
|
||||
.then(() => this.app.markActiveLinks())
|
||||
|
@ -57,6 +57,11 @@ export class Diff {
|
||||
let attrib = elemB.attributes[x]
|
||||
|
||||
if(attrib.specified) {
|
||||
// Skip mountables
|
||||
if(attrib.name == "class" && elemA.classList.contains("mounted")) {
|
||||
continue
|
||||
}
|
||||
|
||||
elemA.setAttribute(attrib.name, elemB.getAttribute(attrib.name))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user