From 477639c49645effe230926e308019b5e3fdb3653 Mon Sep 17 00:00:00 2001 From: Anna Headley <anna3LC@gmail.com> Date: Mon, 26 Jan 2015 15:04:49 -0500 Subject: [PATCH] Move slash from regex to url var. Fixes eternal spinner when there's no terminal slash. --- themes/bootstrap3/js/record.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/bootstrap3/js/record.js b/themes/bootstrap3/js/record.js index 5507934e7b8..faa28dfe565 100644 --- a/themes/bootstrap3/js/record.js +++ b/themes/bootstrap3/js/record.js @@ -151,12 +151,12 @@ function registerTabEvents() { 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)) + "/"; + var urlroot = document.URL.match(new RegExp('/[^/]+/'+id)); if(urlroot == "null/") { return true; } $.ajax({ - url: path + urlroot + 'AjaxTab', + url: path + urlroot + '/AjaxTab', type: 'POST', data: {tab: tabid}, success: function(data) { -- GitLab