Permalink
Browse files

comment MDL-27024 Removed last check within comment.js for block_comm…

…ent env
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Mar 30, 2011
1 parent 3962c89 commit ee6181b1e7d5fe3e9a866668e85e9c2d9062ac91
Showing with 3 additions and 2 deletions.
  1. +3 −2 comment/comment.js
View
@@ -41,8 +41,9 @@ M.core_comment = {
this.courseid = args.courseid;
this.contextid = args.contextid;
this.env = args.env;
+ this.autostart = (args.autostart);
// expand comments?
- if (args.autostart) {
+ if (this.autostart) {
this.view(args.page);
}
// load comments
@@ -347,7 +348,7 @@ bodyContent: '<div class="comment-delete-confirm"><a href="#" id="confirmdelete-
var d = container.getStyle('display');
if (d=='none'||d=='') {
// show
- if (this.env != 'block_comments') {
+ if (this.autostart) {
this.load(page);
} else {
this.register_delete_buttons();

0 comments on commit ee6181b

Please sign in to comment.