Permalink
Browse files

Merge branch 'wip-mdl-30375-m21' of git://github.com/rajeshtaneja/moo…

…dle into MOODLE_21_STABLE
  • Loading branch information...
2 parents 6fe2462 + db90eb6 commit 279fa1b994ac97f9e69e27a4b5552a8e9b49cf48 @stronk7 stronk7 committed Nov 23, 2011
Showing with 3 additions and 1 deletion.
  1. +1 −1 blocks/comments/block_comments.php
  2. +2 −0 comment/comment.js
View
2 blocks/comments/block_comments.php
@@ -74,7 +74,7 @@ function get_content() {
$args->linktext = get_string('showcomments');
$args->notoggle = true;
$args->autostart = true;
- $args->displaycancel = true;
+ $args->displaycancel = false;
$comment = new comment($args);
$comment->set_view_permission(true);
View
2 comment/comment.js
@@ -58,6 +58,7 @@ M.core_comment = {
return false;
}, this);
}
+ scope.toggle_textarea(false);
CommentHelper.confirmoverlay = new Y.Overlay({
bodyContent: '<div class="comment-delete-confirm"><a href="#" id="confirmdelete-'+this.client_id+'">'+M.str.moodle.yes+'</a> <a href="#" id="canceldelete-'+this.client_id+'">'+M.str.moodle.no+'</a></div>',
visible: false
@@ -79,6 +80,7 @@ bodyContent: '<div class="comment-delete-confirm"><a href="#" id="confirmdelete-
var cid = scope.client_id;
var ta = Y.one('#dlg-content-'+cid);
ta.set('value', '');
+ scope.toggle_textarea(false);
var container = Y.one('#comment-list-'+cid);
var result = scope.render([obj], true);
var newcomment = Y.Node.create(result.html);

0 comments on commit 279fa1b

Please sign in to comment.