Fixes replyto JS after the upgrade from jQuery 1.4.2
This commit is contained in:
parent
b54480247a
commit
a0f6977baa
18
js/util.js
18
js/util.js
@ -320,18 +320,12 @@ var SN = { // StatusNet
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
NoticeReplyTo: function(notice_item) {
|
NoticeReplyTo: function(notice) {
|
||||||
var notice = notice_item[0];
|
notice.find('.notice_reply').live('click', function() {
|
||||||
var notice_reply = $('.notice_reply', notice)[0];
|
var nickname = ($('.author .nickname', notice).length > 0) ? $($('.author .nickname', notice)[0]) : $('.author .nickname.uid');
|
||||||
|
SN.U.NoticeReplySet(nickname.text(), $($('.notice_id', notice)[0]).text());
|
||||||
if (jQuery.data(notice_reply, "ElementData") === undefined) {
|
return false;
|
||||||
jQuery.data(notice_reply, "ElementData", {Bind:'submit'});
|
});
|
||||||
$(notice_reply).bind('click', function() {
|
|
||||||
var nickname = ($('.author .nickname', notice).length > 0) ? $($('.author .nickname', notice)[0]) : $('.author .nickname.uid');
|
|
||||||
SN.U.NoticeReplySet(nickname.text(), $($('.notice_id', notice)[0]).text());
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
NoticeReplySet: function(nick,id) {
|
NoticeReplySet: function(nick,id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user