From 5c829230697839f8206e9c7bf4663d76e728cbae Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 14 Apr 2014 21:43:42 -0500 Subject: [PATCH] pjax: No pjax on download links --- include/class.thread.php | 2 +- scp/js/ticket.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.thread.php b/include/class.thread.php index 9ab7958e7..65c4543f2 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -602,7 +602,7 @@ Class ThreadEntry { if($attachment['size']) $size=sprintf('<em>(%s)</em>', Format::file_size($attachment['size'])); - $str.=sprintf('<a class="Icon file" href="%s?id=%d&h=%s" target="%s">%s</a>%s %s', + $str.=sprintf('<a class="Icon file no-pjax" href="%s?id=%d&h=%s" target="%s">%s</a>%s %s', $file, $attachment['attach_id'], $hash, $target, Format::htmlchars($attachment['name']), $size, $separator); } diff --git a/scp/js/ticket.js b/scp/js/ticket.js index 221f6aaca..b590e5c01 100644 --- a/scp/js/ticket.js +++ b/scp/js/ticket.js @@ -437,7 +437,7 @@ showImagesInline = function(urls, thread_id) { } ).append($('<div class="caption">') .append('<span class="filename">'+info.filename+'</span>') - .append('<a href="'+info.download_url+'" class="action-button"><i class="icon-download-alt"></i> Download</a>') + .append('<a href="'+info.download_url+'" class="action-button no-pjax"><i class="icon-download-alt"></i> Download</a>') ); e.data('wrapped', true); } -- GitLab