Removed custom javascript that adds tab url to location bar. Wait until a better solution.
This commit is contained in:
@ -95,20 +95,3 @@ block content
|
|||||||
p: a.text-danger(href='/account/unlink/') Unlink your GitHub account
|
p: a.text-danger(href='/account/unlink/') Unlink your GitHub account
|
||||||
else
|
else
|
||||||
p: a(href='/auth/github') Link your GitHub account
|
p: a(href='/auth/github') Link your GitHub account
|
||||||
|
|
||||||
|
|
||||||
script
|
|
||||||
$('#myTab a').click(function (e) {
|
|
||||||
e.preventDefault()
|
|
||||||
$(this).tab('show')
|
|
||||||
});
|
|
||||||
|
|
||||||
// store the currently selected tab in the hash value
|
|
||||||
$("ul.nav-tabs > li > a").on("shown.bs.tab", function (e) {
|
|
||||||
var id = $(e.target).attr("href").substr(1);
|
|
||||||
window.location.hash = id;
|
|
||||||
});
|
|
||||||
|
|
||||||
// on load of the page: switch to the currently selected tab
|
|
||||||
var hash = window.location.hash;
|
|
||||||
$('#myTab a[href="' + hash + '"]').tab('show');
|
|
Reference in New Issue
Block a user