|
|
@ -141,6 +141,8 @@ function newProfileModal(username) { |
|
|
|
return profileModalContent; |
|
|
|
return profileModalContent; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
|
|
|
|
function openProfileModal(e) |
|
|
|
function openProfileModal(e) |
|
|
|
{ |
|
|
|
{ |
|
|
|
e.stopPropagation(); |
|
|
|
e.stopPropagation(); |
|
|
@ -161,6 +163,8 @@ function openProfileModalWithUsername(username) |
|
|
|
window.location.hash = '#profile?user=' + username; |
|
|
|
window.location.hash = '#profile?user=' + username; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
function openProfileModalWithUsernameHandler(username) |
|
|
|
function openProfileModalWithUsernameHandler(username) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var profileModalClass = "profile-modal"; |
|
|
|
var profileModalClass = "profile-modal"; |
|
|
@ -404,13 +408,18 @@ function watchHashChange(e) |
|
|
|
hashstring = decodeURIComponent(hashstring); |
|
|
|
hashstring = decodeURIComponent(hashstring); |
|
|
|
|
|
|
|
|
|
|
|
if(e!=null){ |
|
|
|
if(e!=null){ |
|
|
|
var prevhashstring = e.oldURL.split('#'); |
|
|
|
var prevurlsplit = e.oldURL.split('#'); |
|
|
|
prevhashstring=prevhashstring[1]; |
|
|
|
var newurlsplit = e.newURL.split('#'); |
|
|
|
if(prevhashstring.length>0 && prevhashstring!=undefined){ |
|
|
|
prevhashstring=prevurlsplit[1]; |
|
|
|
|
|
|
|
if(prevurlsplit[0]==newurlsplit[0] && prevhashstring.length>0 && prevhashstring!=undefined){ |
|
|
|
$('.modal-back').css('display','inline'); |
|
|
|
$('.modal-back').css('display','inline'); |
|
|
|
$('.modal-back').on('click', function(e){ |
|
|
|
$('.modal-back').on('click', function(e){ |
|
|
|
|
|
|
|
e.stopPropagation(); |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
//window.location.hash = '#' + prevhashstring;
|
|
|
|
|
|
|
|
|
|
|
|
history.back(1); |
|
|
|
history.back(1); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$('.modal-back').css('display','none'); |
|
|
|
$('.modal-back').css('display','none'); |
|
|
@ -1451,10 +1460,10 @@ function initInterfaceCommon() { |
|
|
|
var $replyText = $( ".post-area-new textarea" ); |
|
|
|
var $replyText = $( ".post-area-new textarea" ); |
|
|
|
$replyText.on("keyup", replyTextKeypress ); |
|
|
|
$replyText.on("keyup", replyTextKeypress ); |
|
|
|
|
|
|
|
|
|
|
|
//$( ".open-profile-modal").bind( "click", openProfileModal );
|
|
|
|
$( ".open-profile-modal").bind( "click", function(e){ e.stopPropagation(); } ); |
|
|
|
//$( ".open-hashtag-modal").bind( "click", openHashtagModal );
|
|
|
|
//$( ".open-hashtag-modal").bind( "click", openHashtagModal );
|
|
|
|
//$( ".open-following-modal").bind( "click", openFollowingModal );
|
|
|
|
//$( ".open-following-modal").bind( "click", openFollowingModal );
|
|
|
|
//$( ".userMenu-connections a").bind( "click", openMentionsModal );
|
|
|
|
$( ".userMenu-connections a").bind( "click", openMentionsModal ); |
|
|
|
$( ".mentions-from-user").bind( "click", openMentionsModal ); |
|
|
|
$( ".mentions-from-user").bind( "click", openMentionsModal ); |
|
|
|
|
|
|
|
|
|
|
|
replaceDashboards(); |
|
|
|
replaceDashboards(); |
|
|
|