summaryrefslogtreecommitdiff
path: root/themes/default/js/ui.init.js
diff options
context:
space:
mode:
authorJakob Hilden <jhild@umich.edu>2009-02-23 00:46:25 +0000
committerJakob Hilden <jhild@umich.edu>2009-02-23 00:46:25 +0000
commit7d96448ecbf0c7d24bf851db13d1b81bb726024e (patch)
tree57ee354aed50640e9331f9f00f8e9d1d5b305c79 /themes/default/js/ui.init.js
parentecaf6bda32e9fdb77ff97c93577b1bea6d46a754 (diff)
added additional comment link, if no comments have been made yet.
Diffstat (limited to 'themes/default/js/ui.init.js')
-rw-r--r--themes/default/js/ui.init.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js
index 3c6ca777..ffcc3ed3 100644
--- a/themes/default/js/ui.init.js
+++ b/themes/default/js/ui.init.js
@@ -55,10 +55,10 @@ $(document).ready(function() {
// Collapse comments form, insert button to expand
if ($("#gAddCommentForm").length) {
- var showCommentForm = '<a href="#add_comment_form" id="showCommentForm" class="gButtonLink ui-corner-all ui-icon-left ui-state-default right"><span class="ui-icon ui-icon-comment"></span>Add a comment</a>';
+ var showCommentForm = '<a href="#add_comment_form" class="showCommentForm gButtonLink ui-corner-all ui-icon-left ui-state-default right"><span class="ui-icon ui-icon-comment"></span>Add a comment</a>';
$("#gAddCommentForm").hide();
$("#gComments").prepend(showCommentForm);
- $("#showCommentForm").click(function(){
+ $(".showCommentForm").click(function(){
$("#gAddCommentForm").show(1000);
});
}