]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - js/util.js
integrate URL routing into core code
[quix0rs-gnu-social.git] / 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) {