Skip to content
Browse files

refactoring

  • Loading branch information...
1 parent 3d5f58d commit 3d5046a522d6897fd6719ea7c2a8fbae358546f1 @pilu pilu committed Jan 21, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 index.html
View
6 index.html
@@ -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');
}
}
}

0 comments on commit 3d5046a

Please sign in to comment.
Something went wrong with that request. Please try again.