mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 16:17:29 +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");
|
let alertBox = document.getElementById("alertBox");
|
||||||
if (alertBox.getAttribute("animate") == "true") {
|
if (alertBox.getAttribute("animate") == "true") {
|
||||||
// Closed when the animation ends.
|
// Closed when the animation ends.
|
||||||
|
alertBox.style.animationDuration = ".6s";
|
||||||
alertBox.setAttribute("clicked", "true");
|
alertBox.setAttribute("clicked", "true");
|
||||||
} else {
|
} else {
|
||||||
window.close();
|
window.close();
|
||||||
|
|
@ -355,6 +356,7 @@ function onAlertClose() {
|
||||||
let alertBox = document.getElementById("alertBox");
|
let alertBox = document.getElementById("alertBox");
|
||||||
if (alertBox.getAttribute("animate") == "true") {
|
if (alertBox.getAttribute("animate") == "true") {
|
||||||
// Closed when the animation ends.
|
// Closed when the animation ends.
|
||||||
|
alertBox.style.animationDuration = ".6s";
|
||||||
alertBox.setAttribute("closing", "true");
|
alertBox.setAttribute("closing", "true");
|
||||||
} else {
|
} else {
|
||||||
window.close();
|
window.close();
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#alertBox[animate][clicked] {
|
#alertBox[animate][clicked] {
|
||||||
animation-duration: .6s;
|
|
||||||
animation-name: alert-clicked-animation;
|
animation-name: alert-clicked-animation;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is used if the close button is clicked
|
/* This is used if the close button is clicked
|
||||||
before the animation has finished. */
|
before the animation has finished. */
|
||||||
#alertBox[animate][closing] {
|
#alertBox[animate][closing] {
|
||||||
animation-duration: .6s;
|
|
||||||
animation-name: alert-closing-animation;
|
animation-name: alert-closing-animation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue