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

[allura] branch kt/fix-sticky-notify created (now f627d188e)

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

kentontaylor pushed a change to branch kt/fix-sticky-notify
in repository https://gitbox.apache.org/repos/asf/allura.git


      at f627d188e Fixes sticky notifications

This branch includes the following new commits:

     new f627d188e Fixes sticky notifications

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[allura] 01/01: Fixes sticky notifications

Posted by ke...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kentontaylor pushed a commit to branch kt/fix-sticky-notify
in repository https://gitbox.apache.org/repos/asf/allura.git

commit f627d188e55daa43bcc7acf6a465325106900b58
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);