From 10589d54b9d590338d8c8aa522db3081931f1df5 Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Tue, 8 Jul 2014 16:22:59 -0400 Subject: [PATCH] Clicking the active record tab in Bootstrap 3 will reload the page to that tab. --- themes/bootstrap3/js/record.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/bootstrap3/js/record.js b/themes/bootstrap3/js/record.js index 23b25e9533a..1deef96e2c9 100644 --- a/themes/bootstrap3/js/record.js +++ b/themes/bootstrap3/js/record.js @@ -185,6 +185,10 @@ $(document).ready(function(){ registerTabEvents(); $('ul.recordTabs a').click(function (e) { + if($(this).parents('li.active').length > 0) { + window.location.href = $(this).attr('href'); + return; + } var tabid = $(this).attr('id').toLowerCase(); if($('#'+tabid+'-tab').length > 0) { $('#record-tabs .tab-pane.active').removeClass('active'); -- GitLab