diff --git a/comment/comment.js b/comment/comment.js index 59bf3070841..56d0eeca5c7 100644 --- a/comment/comment.js +++ b/comment/comment.js @@ -45,13 +45,13 @@ M.core_comment = { if (args.autostart) { this.view(args.page); } - // hide toggle link - if (args.notoggle) { - Y.one('#comment-link-'+this.client_id).setStyle('display', 'none'); - } // load comments var handle = Y.one('#comment-link-'+this.client_id); + // hide toggle link if (handle) { + if (args.notoggle) { + handle.setStyle('display', 'none'); + } handle.on('click', function(e) { e.preventDefault(); this.view(0); @@ -85,7 +85,9 @@ bodyContent: '
+ EOD; // in comments block, we print comments list right away if ($this->env == 'block_comments') { @@ -348,19 +354,15 @@ EOD; $html .= <<
-
+
{$strsubmit}
EOD;
- if ($this->env != 'block_comments') {
- $html .= << |
- {$strcancel}
-EOD;
- }
-
- $html .= <<env != 'block_comments') {
+ $html .= " | cid}\"> {$strcancel} ";
+ }
+ $html .= <<
@@ -637,7 +639,7 @@ EOD;
$replacements = array();
if (!empty($cmt->delete) && empty($nonjs)) {
- $cmt->content = '.')
' . $cmt->content;
+ $cmt->content = '.')
' . $cmt->content;
// add the button
}
$patterns[] = '___picture___';
diff --git a/theme/base/style/core.css b/theme/base/style/core.css
index 3f9bb47f296..77ed5fa2a9c 100644
--- a/theme/base/style/core.css
+++ b/theme/base/style/core.css
@@ -318,6 +318,7 @@ table.mod_index {width:100%;}
.comment-meta span {color:gray;}
.comment-list {font-size: 11px;overflow:auto;list-style:none;padding:0;margin:0;}
.comment-list li {margin: 2px;margin-bottom:5px;clear:both;}
+.comment-list li.first {display:none}
.comment-paging{text-align:center;}
.comment-paging .pageno{padding:2px;}
.comment-paging .curpage{border:1px solid #CCC;}
@@ -331,6 +332,7 @@ table.mod_index {width:100%;}
.comment-report-selectall{display:none}
.comment-link {display:none}
.jsenabled .comment-link {display:block}
+.jsenabled .showcommentsnonjs{display:none}
.jsenabled .comment-report-selectall{display:inline}
/**
@@ -677,4 +679,4 @@ body.tag .managelink {padding: 5px;}
* Fix for broken YUI images in the menunav component
*/
.yui3-skin-sam .yui3-menu-horizontal .yui3-menu-label,
-.yui3-skin-sam .yui3-menu-horizontal .yui3-menu-content {background-image:none;}
\ No newline at end of file
+.yui3-skin-sam .yui3-menu-horizontal .yui3-menu-content {background-image:none;}