Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-36341 calendar: fixed JS bug with popup node setter

  • Loading branch information...
commit c6e0d385c36e25ea67749690658b3b0dbd00bfad 1 parent 31a3bcc
@samhemelryk samhemelryk authored stronk7 committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 calendar/yui/eventmanager/eventmanager.js
View
6 calendar/yui/eventmanager/eventmanager.js
@@ -101,8 +101,10 @@ YUI.add('moodle-calendar-eventmanager', function(Y) {
},
node : {
setter : function(node) {
- var n = Y.one('#'+node);
- return n;
+ if (typeof(node) === 'string') {
+ node = Y.one('#'+node);
+ }
+ return node;
}
},
title : {
Please sign in to comment.
Something went wrong with that request. Please try again.