trigger reading status modals from move button
- unhide reading status shelves - trigger modals when moving to a read status shelf - force page refresh when using move button
This commit is contained in:
parent
ec39346e67
commit
9ffe4d340e
8 changed files with 68 additions and 7 deletions
|
@ -90,6 +90,11 @@ let StatusCache = new class {
|
|||
trigger.removeAttribute('disabled');
|
||||
})
|
||||
.then(response => {
|
||||
if (response.headers.get("forceReload")) {
|
||||
BookWyrm.addRemoveClass(form, 'is-processing', true);
|
||||
trigger.setAttribute('disabled', null);
|
||||
return location.reload();
|
||||
}
|
||||
if (!response.ok) {
|
||||
throw new Error();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue