Skip to content

Commit

Permalink
comment MDL-27024 Removed last check within comment.js for block_comm…
Browse files Browse the repository at this point in the history
…ent env
  • Loading branch information
Sam Hemelryk committed Apr 11, 2011
1 parent 1c64a9c commit 99f2cd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions comment/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 99f2cd5

Please sign in to comment.