summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-05-05 15:44:25 +0200
committerGitHub <noreply@github.com>2018-05-05 15:44:25 +0200
commitd7d69d57ffec719a4dc750c6db85b6b89ef9cfc4 (patch)
treebcbf355b0b2d36e6a9555d24373decc478834953
parent6bbd2aa13954ef8a8a10f84d14b640c022da850a (diff)
parentc543565bc0e4af84b2b421e31a0a04193042f008 (diff)
downloaduxp-d7d69d57ffec719a4dc750c6db85b6b89ef9cfc4.tar.gz
Merge pull request #333 from janekptacijarabaci/notifications_settings_2
[follow up] moebius#154: Notifications - user settings - the immediate duration of the alert (fix for "New layout of XUL Notifications")
-rw-r--r--toolkit/components/alerts/resources/content/alert.js2
-rw-r--r--toolkit/themes/shared/alert-common.css2
2 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/components/alerts/resources/content/alert.js b/toolkit/components/alerts/resources/content/alert.js
index ce60ab0fa9..12068b5488 100644
--- a/toolkit/components/alerts/resources/content/alert.js
+++ b/toolkit/components/alerts/resources/content/alert.js
@@ -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();
diff --git a/toolkit/themes/shared/alert-common.css b/toolkit/themes/shared/alert-common.css
index 010e89393d..17510c0dbd 100644
--- a/toolkit/themes/shared/alert-common.css
+++ b/toolkit/themes/shared/alert-common.css
@@ -15,14 +15,12 @@
}
#alertBox[animate][clicked] {
- animation-duration: .6s;
animation-name: alert-clicked-animation;
}
/* This is used if the close button is clicked
before the animation has finished. */
#alertBox[animate][closing] {
- animation-duration: .6s;
animation-name: alert-closing-animation;
}