trying to add closeModal to browser's url/hash history

This commit is contained in:
Miguel Freitas 2014-11-07 11:18:58 -02:00
parent 63f36c8e39
commit f415c0e516

View File

@ -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();
}
}