diff --git a/themes/bootstrap3/js/record.js b/themes/bootstrap3/js/record.js index faa28dfe56512ed72e0292bcf8ac742639ef7548..7780b98786fbc391270a81d079f53dccc3535eb9 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({