Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MDL-33186 Ensure that the comment textarea exists before toggling it
[moodle.git]
/
comment
/
comment.js
diff --git
a/comment/comment.js
b/comment/comment.js
index
dcf669e
..
a16b83a
100644
(file)
--- a/
comment/comment.js
+++ b/
comment/comment.js
@@
-385,6
+385,9
@@
bodyContent: '<div class="comment-delete-confirm"><a href="#" id="confirmdelete-
},
toggle_textarea: function(focus) {
var t = Y.one('#dlg-content-'+this.client_id);
+ if (!t) {
+ return false;
+ }
if (focus) {
if (t.get('value') == M.str.moodle.addcomment) {
t.set('value', '');