From 440e249e12a3cbb23413fb9b1f121061adacbc5a Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Tue, 29 Apr 2014 13:11:32 -0500
Subject: [PATCH] pjax: No pjax on canned attachments

---
 scp/js/scp.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scp/js/scp.js b/scp/js/scp.js
index cc816fd99..fb071801f 100644
--- a/scp/js/scp.js
+++ b/scp/js/scp.js
@@ -234,7 +234,7 @@ var scp_prep = function() {
                             if(!$('.canned_attachments #f'+j.id,fObj).length) {
                                 var file='<span><label><input type="checkbox" name="cannedattachments[]" value="' + j.id+'" id="f'+j.id+'" checked="checked">';
                                     file+= ' '+ j.name + '</label>';
-                                    file+= ' (<a href="file.php?h=' + j.key + j.hash + '">view</a>) </span>';
+                                    file+= ' (<a target="_blank" class="no-pjax" href="file.php?h=' + j.key + j.hash + '">view</a>) </span>';
                                 $('.canned_attachments', fObj).append(file);
                             }
 
-- 
GitLab