mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-12 05:21:18 +00:00
trying to add closeModal to browser's url/hash history
This commit is contained in:
parent
63f36c8e39
commit
f415c0e516
@ -30,6 +30,12 @@ function openModal( modalClass )
|
||||
|
||||
//fecha o modal removendo o conteúdo por detach
|
||||
function closeModal($this)
|
||||
{
|
||||
closeModalHandler($this);
|
||||
window.location.hash = '';
|
||||
}
|
||||
|
||||
function closeModalHandler($this)
|
||||
{
|
||||
var $body = $( "body" );
|
||||
var $modalWindows = $( "body" ).children( ".modal-blackout" );
|
||||
@ -370,6 +376,8 @@ function watchHashChange(e)
|
||||
}else if (hashdata[1] == 'hashtag') {
|
||||
openHashtagModalFromSearch(hashdata[2]);
|
||||
}
|
||||
} else {
|
||||
closeModalHandler();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user