#52: extra change JS

This commit is contained in:
Vokhmin Alexey V 2013-03-28 14:21:25 +04:00
parent 7c02610a20
commit 274c4d39be
1 changed files with 5 additions and 3 deletions

View File

@ -9,9 +9,11 @@ $(document).ready(function() {
}
});
// Since the event is only triggered when the hash changes, we need to trigger
// the event now, to handle the hash the page may have loaded with.
jQuery(window).trigger('hashchange');
$(window).load(function() {
// this code will run after all other $(document).ready() scripts
// have completely finished, AND all page elements are fully loaded.
jQuery(window).trigger('hashchange');
});
});