|
|
@ -404,8 +404,6 @@ function openConversationModal(e) |
|
|
|
|
|
|
|
|
|
|
|
function watchHashChange(e) |
|
|
|
function watchHashChange(e) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var hashstring = window.location.hash |
|
|
|
|
|
|
|
hashstring = decodeURIComponent(hashstring); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(e!=null){ |
|
|
|
if(e!=null){ |
|
|
|
var prevurlsplit = e.oldURL.split('#'); |
|
|
|
var prevurlsplit = e.oldURL.split('#'); |
|
|
@ -427,6 +425,14 @@ function watchHashChange(e) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
loadModalFromHash(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function loadModalFromHash(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var hashstring = window.location.hash |
|
|
|
|
|
|
|
hashstring = decodeURIComponent(hashstring); |
|
|
|
|
|
|
|
|
|
|
|
var hashdata = hashstring.split(':'); |
|
|
|
var hashdata = hashstring.split(':'); |
|
|
|
if (hashdata[0] != '#web+twister') { |
|
|
|
if (hashdata[0] != '#web+twister') { |
|
|
|
hashdata = hashstring.match(/(hashtag|profile|mentions|directmessages|following)\?(?:user|hashtag)=(.+)/); |
|
|
|
hashdata = hashstring.match(/(hashtag|profile|mentions|directmessages|following)\?(?:user|hashtag)=(.+)/); |
|
|
@ -451,8 +457,8 @@ function watchHashChange(e) |
|
|
|
} else{ |
|
|
|
} else{ |
|
|
|
closeModalHandler(); |
|
|
|
closeModalHandler(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function initHashWatching() |
|
|
|
function initHashWatching() |
|
|
|
{ |
|
|
|
{ |
|
|
|