From: Sarven Capadisli Date: Thu, 25 Feb 2010 13:51:23 +0000 (+0100) Subject: Fixes replyto JS after the upgrade from jQuery 1.4.2 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a0f6977baa9d85a329d2ac9b77a2efd13ffdb024;p=quix0rs-gnu-social.git Fixes replyto JS after the upgrade from jQuery 1.4.2 --- diff --git a/js/util.js b/js/util.js index 4b6c39a1dc..949aec957d 100644 --- a/js/util.js +++ b/js/util.js @@ -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() { - 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; - }); - } + 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) {