Skip to content

Commit

Permalink
fixed initial view
Browse files Browse the repository at this point in the history
  • Loading branch information
Randgalt committed Mar 8, 2013
1 parent 818fc18 commit 1509704
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions js/nf.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,27 +382,13 @@ function buildTabs()
$('#sub-header').html(content);
}

function getTabIndex(which)
{
var index = null;
for ( var i = 0; i < tabs.length; ++i )
{
if ( which && (which.match(tabs[i].code + '.*')) )
{
index = i;
break;
}
}
return index ? index : 0;
}

function getViewParam()
{
if ( location.hash )
{
return location.hash.substring(1);
}
return $.urlParam('view');
return tabs[0].code;
}

function refineBlogHash(hash)
Expand Down

0 comments on commit 1509704

Please sign in to comment.