Permalink
Browse files

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

…ent env
  • Loading branch information...
1 parent 1c64a9c commit 99f2cd543531acf95a156239275163b2a6f10ce5 Sam Hemelryk committed Mar 30, 2011
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 99f2cd5

Please sign in to comment.