From a0f6977baa9d85a329d2ac9b77a2efd13ffdb024 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Thu, 25 Feb 2010 14:51:23 +0100 Subject: Fixes replyto JS after the upgrade from jQuery 1.4.2 --- js/util.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'js/util.js') diff --git a/js/util.js b/js/util.js index 4b6c39a1d..949aec957 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) { -- cgit v1.2.3-54-g00ecf