forked from GNUsocial/gnu-social
Uses regular HTTP GET to new notice replyto page instead of JS when
notice_data-text is available.
This commit is contained in:
parent
f761031d0a
commit
e2d445abbb
16
js/util.js
16
js/util.js
@ -202,14 +202,16 @@ function NoticeHover() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function NoticeReply() {
|
function NoticeReply() {
|
||||||
$('#content .notice').each(function() {
|
if ($('#notice_data-text').length > 0) {
|
||||||
var notice = $(this);
|
$('#content .notice').each(function() {
|
||||||
$('.notice_reply', $(this)).click(function() {
|
var notice = $(this);
|
||||||
var nickname = ($('.author .nickname', notice).length > 0) ? $('.author .nickname', notice) : $('.author .nickname');
|
$('.notice_reply', $(this)).click(function() {
|
||||||
NoticeReplySet(nickname.text(), $('.notice_id', notice).text());
|
var nickname = ($('.author .nickname', notice).length > 0) ? $('.author .nickname', notice) : $('.author .nickname');
|
||||||
return false;
|
NoticeReplySet(nickname.text(), $('.notice_id', notice).text());
|
||||||
|
return false;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function NoticeReplySet(nick,id) {
|
function NoticeReplySet(nick,id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user