diff --git a/plugins/dynamix/include/DefaultPageLayout.php b/plugins/dynamix/include/DefaultPageLayout.php index ce6960453..37a0b5afc 100644 --- a/plugins/dynamix/include/DefaultPageLayout.php +++ b/plugins/dynamix/include/DefaultPageLayout.php @@ -222,9 +222,9 @@ function addBannerWarning(text,warning=true,noDismiss=false) { var cookieText = text.replace(/[^a-z0-9]/gi,''); if ($.cookie(cookieText) == "true") return false; if (warning) text = " "+text; - if (!noDismiss) text = text + ""; if ( bannerWarnings.indexOf(text) < 0 ) { var arrayEntry = bannerWarnings.push("placeholder") - 1; + if (!noDismiss) text = text + ""; bannerWarnings[arrayEntry] = text; } else return bannerWarnings.indexOf(text); @@ -236,7 +236,7 @@ function addBannerWarning(text,warning=true,noDismiss=false) { } function dismissBannerWarning(entry,cookieText) { - $.cookie(cookieText,"true"); + $.cookie(cookieText,"true",{expires:365,path:'/'}); removeBannerWarning(entry); }