mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-14 08:58:05 +00:00
add click to post citation to open post in tmobile
This commit is contained in:
parent
7a6669d926
commit
80be52b2d9
@ -488,6 +488,15 @@ function handleAvatarFileSelectMobile(evt) {
|
||||
}
|
||||
}
|
||||
|
||||
function openConversationClick(event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
var userpost = $(event.target).closest(event.data.feeder).attr('data-userpost');
|
||||
|
||||
$.mobile.showPageLoadingMsg();
|
||||
$.mobile.navigate('#post?userpost=' + encodeURIComponent(userpost));
|
||||
}
|
||||
|
||||
|
||||
function clearProfilePage() {
|
||||
|
@ -120,7 +120,7 @@ function postToElem(post, kind, promoted) {
|
||||
.attr('data-content_to_sigrt', content_to_sigrt)
|
||||
.attr('data-screen-name', username)
|
||||
.attr('data-id', k)
|
||||
.attr('data-lastk', userpost["lastk"])
|
||||
.attr('data-lastk', userpost.lastk)
|
||||
.attr('data-text', msg)
|
||||
;
|
||||
if (userpost.reply) {
|
||||
@ -170,6 +170,7 @@ function postToElem(post, kind, promoted) {
|
||||
.find('.post-rt-reference')
|
||||
.attr('data-screen-name', rt.n)
|
||||
.attr('data-id', rt.k)
|
||||
.attr('data-userpost', $.toJSON({userpost: rt, sig_userpost: userpost.sig_rt}))
|
||||
.find('.post-text').html(htmlFormatMsg(rt.msg).html)
|
||||
;
|
||||
setPostCommon(postContext, rt.n, rt.time);
|
||||
|
Loading…
Reference in New Issue
Block a user