Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-33186 Ensure that the comment textarea exists before toggling it

  • Loading branch information...
commit a8cf5e957406865ca766e6dcfd2155baf588776d 1 parent c61f5f8
@andrewnicols andrewnicols authored danpoltawski committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  comment/comment.js
View
3  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', '');
Please sign in to comment.
Something went wrong with that request. Please try again.