mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 16:37:31 +09:00
[follow up] moebius#154: Notifications - user settings - the immediate duration of the alert
https://github.com/MoonchildProductions/moebius/pull/154 https://github.com/MoonchildProductions/UXP/pull/132
This commit is contained in:
parent
648b8b2917
commit
d520c739ac
2 changed files with 2 additions and 2 deletions
|
|
@ -313,6 +313,7 @@ function onAlertClick() {
|
|||
let alertBox = document.getElementById("alertBox");
|
||||
if (alertBox.getAttribute("animate") == "true") {
|
||||
// Closed when the animation ends.
|
||||
alertBox.style.animationDuration = ".6s";
|
||||
alertBox.setAttribute("clicked", "true");
|
||||
} else {
|
||||
window.close();
|
||||
|
|
@ -355,6 +356,7 @@ function onAlertClose() {
|
|||
let alertBox = document.getElementById("alertBox");
|
||||
if (alertBox.getAttribute("animate") == "true") {
|
||||
// Closed when the animation ends.
|
||||
alertBox.style.animationDuration = ".6s";
|
||||
alertBox.setAttribute("closing", "true");
|
||||
} else {
|
||||
window.close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue