From d80d62d18663a9a9828312482a395690bbe3c0c7 Mon Sep 17 00:00:00 2001
From: Chris Hallberg <crhallberg@gmail.com>
Date: Tue, 27 Jan 2015 11:48:29 -0500
Subject: [PATCH] Null fix for pul #290.

---
 themes/bootstrap3/js/record.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/bootstrap3/js/record.js b/themes/bootstrap3/js/record.js
index faa28dfe565..7780b98786f 100644
--- a/themes/bootstrap3/js/record.js
+++ b/themes/bootstrap3/js/record.js
@@ -152,7 +152,7 @@ function ajaxLoadTab(tabid) {
   var id = $('.hiddenId')[0].value;
   // Grab the part of the url that is the Controller and Record ID
   var urlroot = document.URL.match(new RegExp('/[^/]+/'+id));
-  if(urlroot == "null/") {
+  if(!urlroot) {
     return true;
   }
   $.ajax({
-- 
GitLab