mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
comment MDL-27024 Removed last check within comment.js for block_comment env
This commit is contained in:
parent
1c64a9cd58
commit
99f2cd5435
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user