summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-06-18 01:04:12 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-06-18 01:04:12 +0000
commit5854fe194a35e1bbf2feb6db415f54f33def2dd9 (patch)
tree3461dad9c9e3d40ef3aba1caf22e4a28dda924bd
parentb0591cd98219cf523d35884015ee9f82c2aa9e09 (diff)
Placed a check to make sure there is a reply button in a notice before
applying the dynamic action
-rw-r--r--js/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/util.js b/js/util.js
index ce0c20d31..854d25060 100644
--- a/js/util.js
+++ b/js/util.js
@@ -235,7 +235,7 @@ $(document).ready(function(){
});
function NoticeReply() {
- if ($('#notice_data-text').length > 0) {
+ if ($('#notice_data-text').length > 0 && $('.notice_reply').length > 0) {
$('#content .notice').each(function() {
var notice = $(this)[0];
$($('.notice_reply', notice)[0]).click(function() {
@@ -308,4 +308,4 @@ function NoticeAttachments() {
$(this).closest(".entry-title").removeClass('ov');
}
);
-} \ No newline at end of file
+}