diff options
author | Sarven Capadisli <csarven@status.net> | 2010-02-25 14:51:23 +0100 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2010-02-25 14:51:23 +0100 |
commit | a0f6977baa9d85a329d2ac9b77a2efd13ffdb024 (patch) | |
tree | 32e3b9a36ff3a9690343017e6582045c040997ba | |
parent | b54480247ac09a41421af811ced5c0dde4e6f473 (diff) |
Fixes replyto JS after the upgrade from jQuery 1.4.2
-rw-r--r-- | js/util.js | 18 |
1 files changed, 6 insertions, 12 deletions
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) { |