Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 088258c16018f90cded4c1d94312fc95f0a2ca1a 1 parent 21878be
@andrewnicols andrewnicols authored
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.