From 6cdef5739ed7e029d4631b849f157462e64bd045 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Sun, 8 Mar 2020 13:29:09 +0100 Subject: Rev: 4615 --- mayor-orig/mayor-portal/log/mayor-portal.rev | 2 +- .../www/skin/classic/module-portal/javascript/portal.jquery.min.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'mayor-orig/mayor-portal') diff --git a/mayor-orig/mayor-portal/log/mayor-portal.rev b/mayor-orig/mayor-portal/log/mayor-portal.rev index c340a93c..24fa9a00 100644 --- a/mayor-orig/mayor-portal/log/mayor-portal.rev +++ b/mayor-orig/mayor-portal/log/mayor-portal.rev @@ -1 +1 @@ -4611 +4615 diff --git a/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js b/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js index 9cf33401..0969c5c7 100644 --- a/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js +++ b/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js @@ -3,7 +3,11 @@ $(function() { $('#mayorbody a[href*="index.php?page"]:not([href*="sessionID"])').each(function( index ) { l = $(this); href = l.attr('href'); - l.attr('href',href+'&policy='+$('body').data('policy')+'&sessionID='+$('body').data('sessionid')); + if (href.includes("policy")) { + l.attr('href',href+'&origPolicy='+$('body').data('policy')+'&sessionID='+$('body').data('sessionid')); + } else { + l.attr('href',href+'&policy='+$('body').data('policy')+'&sessionID='+$('body').data('sessionid')); + } }); }); -- cgit v1.2.3