Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityblast committed Jan 21, 2009
1 parent 3d5f58d commit 3d5046a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Expand Up @@ -16,9 +16,11 @@
},

loadCurrent: function() {
matches = window.location.hash.match(/#(.+)/);
matches = window.location.hash.match(/^#themes\/([a-z0-9\-_]+)$/);
if (matches && matches.length > 1) {
$('#current-theme').attr('href', matches[1] + '/style.css');
$('#current-theme').attr('href', 'themes/' + matches[1] + '/style.css');
} else {
alert('theme not valid');
}
}
}
Expand Down

0 comments on commit 3d5046a

Please sign in to comment.