Fixes replyto JS after the upgrade from jQuery 1.4.2

This commit is contained in:
Sarven Capadisli 2010-02-25 14:51:23 +01:00
parent b54480247a
commit a0f6977baa

View File

@ -320,18 +320,12 @@ var SN = { // StatusNet
}
},
NoticeReplyTo: function(notice_item) {
var notice = notice_item[0];
var notice_reply = $('.notice_reply', notice)[0];
if (jQuery.data(notice_reply, "ElementData") === undefined) {
jQuery.data(notice_reply, "ElementData", {Bind:'submit'});
$(notice_reply).bind('click', function() {
NoticeReplyTo: function(notice) {
notice.find('.notice_reply').live('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) {