mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-74383 assignfeedback_editpdf: Fix comment issues in the pdf editor
This commit is contained in:
parent
2202c71a76
commit
c1ab472180
@ -2233,7 +2233,7 @@ Y.extend(COMMENTSEARCH, M.core.dialogue, {
|
||||
* @method initializer
|
||||
* @return void
|
||||
*/
|
||||
initializer: function(config) {
|
||||
initializer: function() {
|
||||
var editor,
|
||||
container,
|
||||
placeholder,
|
||||
@ -2259,8 +2259,6 @@ Y.extend(COMMENTSEARCH, M.core.dialogue, {
|
||||
|
||||
// Set the body content.
|
||||
this.set('bodyContent', container);
|
||||
|
||||
COMMENTSEARCH.superclass.initializer.call(this, config);
|
||||
},
|
||||
|
||||
/**
|
||||
@ -2622,7 +2620,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
* @return bool true if menu is active, else false.
|
||||
*/
|
||||
this.is_menu_active = function() {
|
||||
return this.menu.get('visible');
|
||||
return this.menu !== null && this.menu.get('visible');
|
||||
};
|
||||
|
||||
/**
|
||||
|
File diff suppressed because one or more lines are too long
@ -2233,7 +2233,7 @@ Y.extend(COMMENTSEARCH, M.core.dialogue, {
|
||||
* @method initializer
|
||||
* @return void
|
||||
*/
|
||||
initializer: function(config) {
|
||||
initializer: function() {
|
||||
var editor,
|
||||
container,
|
||||
placeholder,
|
||||
@ -2259,8 +2259,6 @@ Y.extend(COMMENTSEARCH, M.core.dialogue, {
|
||||
|
||||
// Set the body content.
|
||||
this.set('bodyContent', container);
|
||||
|
||||
COMMENTSEARCH.superclass.initializer.call(this, config);
|
||||
},
|
||||
|
||||
/**
|
||||
@ -2622,7 +2620,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
* @return bool true if menu is active, else false.
|
||||
*/
|
||||
this.is_menu_active = function() {
|
||||
return this.menu.get('visible');
|
||||
return this.menu !== null && this.menu.get('visible');
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -243,7 +243,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
* @return bool true if menu is active, else false.
|
||||
*/
|
||||
this.is_menu_active = function() {
|
||||
return this.menu.get('visible');
|
||||
return this.menu !== null && this.menu.get('visible');
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -33,7 +33,7 @@ Y.extend(COMMENTSEARCH, M.core.dialogue, {
|
||||
* @method initializer
|
||||
* @return void
|
||||
*/
|
||||
initializer: function(config) {
|
||||
initializer: function() {
|
||||
var editor,
|
||||
container,
|
||||
placeholder,
|
||||
@ -59,8 +59,6 @@ Y.extend(COMMENTSEARCH, M.core.dialogue, {
|
||||
|
||||
// Set the body content.
|
||||
this.set('bodyContent', container);
|
||||
|
||||
COMMENTSEARCH.superclass.initializer.call(this, config);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user