mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-45119 editpdf: Do not load quick comments in read-only mode
This commit is contained in:
parent
5344148b34
commit
8ae76e1388
4 changed files with 22 additions and 10 deletions
|
@ -3210,7 +3210,9 @@ EDITOR.prototype = {
|
|||
|
||||
this.currentedit.start = false;
|
||||
this.currentedit.end = false;
|
||||
this.quicklist = new M.assignfeedback_editpdf.quickcommentlist(this);
|
||||
if (!this.get('readonly')) {
|
||||
this.quicklist = new M.assignfeedback_editpdf.quickcommentlist(this);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -3467,7 +3469,9 @@ EDITOR.prototype = {
|
|||
}
|
||||
|
||||
// Update the ui.
|
||||
this.quicklist.load();
|
||||
if (this.quicklist) {
|
||||
this.quicklist.load();
|
||||
}
|
||||
this.setup_navigation();
|
||||
this.setup_toolbar();
|
||||
this.change_page();
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3210,7 +3210,9 @@ EDITOR.prototype = {
|
|||
|
||||
this.currentedit.start = false;
|
||||
this.currentedit.end = false;
|
||||
this.quicklist = new M.assignfeedback_editpdf.quickcommentlist(this);
|
||||
if (!this.get('readonly')) {
|
||||
this.quicklist = new M.assignfeedback_editpdf.quickcommentlist(this);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -3467,7 +3469,9 @@ EDITOR.prototype = {
|
|||
}
|
||||
|
||||
// Update the ui.
|
||||
this.quicklist.load();
|
||||
if (this.quicklist) {
|
||||
this.quicklist.load();
|
||||
}
|
||||
this.setup_navigation();
|
||||
this.setup_toolbar();
|
||||
this.change_page();
|
||||
|
|
|
@ -205,7 +205,9 @@ EDITOR.prototype = {
|
|||
|
||||
this.currentedit.start = false;
|
||||
this.currentedit.end = false;
|
||||
this.quicklist = new M.assignfeedback_editpdf.quickcommentlist(this);
|
||||
if (!this.get('readonly')) {
|
||||
this.quicklist = new M.assignfeedback_editpdf.quickcommentlist(this);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -462,7 +464,9 @@ EDITOR.prototype = {
|
|||
}
|
||||
|
||||
// Update the ui.
|
||||
this.quicklist.load();
|
||||
if (this.quicklist) {
|
||||
this.quicklist.load();
|
||||
}
|
||||
this.setup_navigation();
|
||||
this.setup_toolbar();
|
||||
this.change_page();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue