You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2022/09/08 19:06:13 UTC

[allura] branch master updated: Fixes sticky notifications

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new f1b7db697 Fixes sticky notifications
f1b7db697 is described below

commit f1b7db6971e2c35df019348455a33568929425c9
Author: Kenton Taylor <kt...@slashdotmedia.com>
AuthorDate: Thu Sep 8 18:23:27 2022 +0000

    Fixes sticky notifications
---
 Allura/allura/public/nf/js/jquery.notify.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/public/nf/js/jquery.notify.js b/Allura/allura/public/nf/js/jquery.notify.js
index 27eb3886d..7e81ff58f 100644
--- a/Allura/allura/public/nf/js/jquery.notify.js
+++ b/Allura/allura/public/nf/js/jquery.notify.js
@@ -78,7 +78,7 @@
                 $msg.removeClass(o.newClass).addClass(o.activeClass);
                 $msg.each(function() {
                     var self = this;
-                    if (!$(self).hasClass(o.stickyClass) || !$(self).hasClass(o.persistentClass)) {
+                    if (!$(self).hasClass(o.stickyClass) && !$(self).hasClass(o.persistentClass)) {
                         var timer = $(self).attr('data-timer') || o.timer;
                         setTimeout(function() {
                             closer($(self), o);