|
|
@ -103,7 +103,12 @@ function openProfileModal(e) |
|
|
|
|
|
|
|
|
|
|
|
var $this = $( this ); |
|
|
|
var $this = $( this ); |
|
|
|
var username = $.MAL.urlToUser( $this.attr("href") ); |
|
|
|
var username = $.MAL.urlToUser( $this.attr("href") ); |
|
|
|
|
|
|
|
openProfileModalWithUsername(username); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function openProfileModalWithUsername(username) |
|
|
|
|
|
|
|
{ |
|
|
|
if(!username) |
|
|
|
if(!username) |
|
|
|
{ |
|
|
|
{ |
|
|
|
alert(polyglot.t("You don't have any profile because you are not logged in.")); |
|
|
|
alert(polyglot.t("You don't have any profile because you are not logged in.")); |
|
|
@ -354,6 +359,17 @@ function openConversationModal(e) |
|
|
|
$( "." + conversationModalClass + " h3" ).text( polyglot.t('conversation_title', {'username': postLi.find('.post-data').attr('data-screen-name')}) ); |
|
|
|
$( "." + conversationModalClass + " h3" ).text( polyglot.t('conversation_title', {'username': postLi.find('.post-data').attr('data-screen-name')}) ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function watchHashChange(e){ |
|
|
|
|
|
|
|
if(/user=(.+)/.test(window.location.hash)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var username = location.hash.match(/user=(.+)/); |
|
|
|
|
|
|
|
if(username[1] != undefined) |
|
|
|
|
|
|
|
openProfileModalWithUsername(username[1]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Post actions, submit, count characters
|
|
|
|
// Post actions, submit, count characters
|
|
|
|
// --------------------------------------
|
|
|
|
// --------------------------------------
|
|
|
|