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 <[email protected]> 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);
