Little update to the active tab using hash from URL, forgot to add a check if the hash is valid, fixed this now
This commit is contained in:
1 parent
bcb74d01b6
commit
b3f35c579b
1 file changed
+5
-3
@@ -481,10 +481,12 @@ $(function() {
|
||||
var changeTab = function()
|
||||
{
|
||||
var hashtag = window.location.hash;
|
||||
|
||||
var tab = $('#tabs a[href="' + hashtag + '"]');
|
||||
tab.tab("show");
|
||||
onTabChange(hashtag);
|
||||
if (tab.length)
|
||||
{
|
||||
tab.tab("show");
|
||||
onTabChange(hashtag);
|
||||
}
|
||||
}
|
||||
|
||||
//~~ view model binding
|
||||
|
||||
Reference in new issue
Block a user