From a877164cc3cb38792bb59b604b38e32a190ac558 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 8 Sep 2014 11:02:42 -0500 Subject: [PATCH] pjax: Navigate away on attachment and download links --- include/class.faq.php | 2 +- scp/js/dashboard.inc.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class.faq.php b/include/class.faq.php index 09d5b2dcb..048e9b277 100644 --- a/include/class.faq.php +++ b/include/class.faq.php @@ -199,7 +199,7 @@ class FAQ { if($attachment['size']) $size=sprintf(' <small>(<i>%s</i>)</small>',Format::file_size($attachment['size'])); - $str.=sprintf('<a class="Icon file" href="file.php?h=%s" target="%s">%s</a>%s %s', + $str.=sprintf('<a class="Icon file no-pjax" href="file.php?h=%s" target="%s">%s</a>%s %s', $hash, $target, Format::htmlchars($attachment['name']), $size, $separator); } diff --git a/scp/js/dashboard.inc.js b/scp/js/dashboard.inc.js index ba19235f1..b16aebf10 100644 --- a/scp/js/dashboard.inc.js +++ b/scp/js/dashboard.inc.js @@ -250,6 +250,7 @@ // ------------------------> Export <----------------------- $('<a>').attr({'href':'ajax.php/report/overview/table/export?group=' +group+'&start='+start+'&stop='+stop}).append('Export') + .addClass('no-pjax') .appendTo($('<li>') .appendTo(p)); -- GitLab