From 593b3753dc60670e2a9f7eaf0fc802df6d9fdd91 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Thu, 17 Mar 2016 15:12:26 +0000
Subject: [PATCH] bug: Don't assume href attribute is set

---
 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 2de80670d..2e6a116be 100644
--- a/scp/js/scp.js
+++ b/scp/js/scp.js
@@ -1057,7 +1057,7 @@ if ($.support.pjax) {
     var $this = $(this);
     if (!$this.hasClass('no-pjax')
         && !$this.closest('.no-pjax').length
-        && $this.attr('href')[0] != '#')
+        && $this.attr('href').charAt(0) != '#')
       $.pjax.click(event, {container: $this.data('pjaxContainer') || $('#pjax-container'), timeout: 2000});
   })
 }
-- 
GitLab