Permalink
Browse files

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

  • Loading branch information...
1 parent 47dfbd9 commit cc52e16c4ab70cf7b921373c4ca82ee6b3c8a8e4 Sam Hemelryk committed Nov 20, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 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 : {

0 comments on commit cc52e16

Please sign in to comment.