Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed hash parsing

  • Loading branch information...
commit 1abd882d4021b44e394034d9e4a98f87a57f19be 1 parent acbee96
@Randgalt Randgalt authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 js/nf.js
View
11 js/nf.js
@@ -409,17 +409,14 @@ function refineBlogHash(hash)
{
$('#tab-content-blog').show();
- var parts = hash.split('-');
var blogName;
- if ( parts.length < 2 )
+ if ( hash.indexOf("blog-") == 0 )
{
- location.hash = parts[0];
- blogName = blogs[0].code;
+ blogName = hash.substring(5);
}
- else
+ else
{
- location.hash = hash;
- blogName = parts[1];
+ blogName = blogs[0].code;
}
$('#blog-content').load('blogs/' + blogName + ".html", null, function(){
Please sign in to comment.
Something went wrong with that request. Please try again.