diff --git a/source/js/VMM.Timeline.js b/source/js/VMM.Timeline.js index 383c8df..6a47f6b 100755 --- a/source/js/VMM.Timeline.js +++ b/source/js/VMM.Timeline.js @@ -67,7 +67,7 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') { preload: 4, current_slide: 0, hash_bookmark: false, - use_hashbang: false, + use_hashbang: false, start_at_end: false, start_at_slide: 0, start_zoom_adjust: 0, @@ -160,11 +160,11 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') { } window.onhashchange = function () { - var hash = (config.use_hashbang) + var hash = (config.use_hashbang) ? window.location.hash.substring(2) : window.location.hash.substring(1); - if (config.hash_bookmark) { + if (config.hash_bookmark) { if (is_moving) { goToEvent(parseInt(hash)); } else { @@ -695,3 +695,4 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') { VMM.Timeline.Config = {}; }; +