Removed custom javascript that adds tab url to location bar. Wait until a better solution.

This commit is contained in:
Sahat Yalkabov
2013-12-17 21:32:45 -05:00
parent f2048f3fda
commit f35370dd30

View File

@ -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');