]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Uses regular HTTP GET to new notice replyto page instead of JS when
authorSarven Capadisli <csarven@plantard.controlezvous.ca>
Wed, 28 Jan 2009 15:25:50 +0000 (15:25 +0000)
committerSarven Capadisli <csarven@plantard.controlezvous.ca>
Wed, 28 Jan 2009 15:25:50 +0000 (15:25 +0000)
notice_data-text is available.

js/util.js

index 391e4653dee3b0c319a8b30cabe6cb513e5b84ab..3ad0386122c53891bda591b85f6ed767cb7796b0 100644 (file)
@@ -202,14 +202,16 @@ function NoticeHover() {
 }
 
 function NoticeReply() {
-    $('#content .notice').each(function() {
-        var notice = $(this);
-        $('.notice_reply', $(this)).click(function() {
-            var nickname = ($('.author .nickname', notice).length > 0) ? $('.author .nickname', notice) : $('.author .nickname');
-            NoticeReplySet(nickname.text(), $('.notice_id', notice).text());
-            return false;
+    if ($('#notice_data-text').length > 0) {
+        $('#content .notice').each(function() {
+            var notice = $(this);
+            $('.notice_reply', $(this)).click(function() {
+                var nickname = ($('.author .nickname', notice).length > 0) ? $('.author .nickname', notice) : $('.author .nickname');
+                NoticeReplySet(nickname.text(), $('.notice_id', notice).text());
+                return false;
+            });
         });
-    });
+    }
 }
 
 function NoticeReplySet(nick,id) {