MDL-45119 editpdf: Do not load quick comments in read-only mode

This commit is contained in:
Andrew Nicols 2014-04-16 15:22:54 +08:00
parent 5344148b34
commit 8ae76e1388
4 changed files with 22 additions and 10 deletions

View file

@ -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();

View file

@ -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();

View file

@ -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();