Skip to content
Snippets Groups Projects
Commit 9feb8657 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Added some comments.

parent aba93998
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@
load_content(url);
}
},
// Compare the current hash to the url in a short interval
// to allow browsing with forward/backward links
interval,
reset_interval = function() {
clearInterval(interval);
......@@ -27,6 +29,7 @@
if( url == '' )
url = location.hash = 'pages';
// Assert instant response to hashtag links
$('a[href^=#]').live('click', function() {
reset_interval();
refresh_url($(this).attr('href').substring(1));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment