-
-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace forum options with account settings (#1742)
- Loading branch information
Showing
191 changed files
with
5,921 additions
and
3,628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const indicator = document.getElementById("misago-ajax-indicator") | ||
|
||
let requests = 0 | ||
let timeout = null | ||
|
||
function updateIndicator(visible) { | ||
if (timeout) { | ||
window.clearTimeout(timeout) | ||
} | ||
|
||
if (visible) { | ||
indicator.classList.add("busy") | ||
indicator.classList.remove("complete") | ||
} else { | ||
indicator.classList.remove("busy") | ||
indicator.classList.add("complete") | ||
|
||
timeout = setTimeout(() => { | ||
indicator.classList.remove("complete") | ||
}, 1500) | ||
} | ||
} | ||
|
||
document.addEventListener("htmx:beforeSend", () => { | ||
requests += 1 | ||
updateIndicator(requests !== 0) | ||
}) | ||
|
||
document.addEventListener("htmx:afterOnLoad", () => { | ||
requests -= 1 | ||
updateIndicator(requests !== 0) | ||
}) | ||
|
||
document.addEventListener("htmx:sendError", () => { | ||
requests -= 1 | ||
updateIndicator(requests !== 0) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
frontend/src/components/options/change-username/form-loading.js
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
frontend/src/components/options/change-username/form-locked.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.