2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
9 M.core_group.init_hover_events = function(Y, events) {
10 // Prepare the overlay if it hasn't already been created
11 this.hoveroverlay = this.hoveroverlay || (function(){
13 var overlay = new Y.Overlay({
14 bodyContent : 'Loading',
18 // Render it against the page
19 overlay.render(Y.one('#page'));
23 // Iterate over the events and attach an event to display the description on
25 for (var id in events) {
26 var node = Y.one('#'+id);
28 node = node.ancestor();
29 node.on('mouseenter', function(e, content){
30 M.core_group.hoveroverlay.set('xy', [this.getX()+(this.get('offsetWidth')/2),this.getY()+this.get('offsetHeight')-5]);
31 M.core_group.hoveroverlay.set("bodyContent", content);
32 M.core_group.hoveroverlay.show();
33 M.core_group.hoveroverlay.get('boundingBox').setStyle('visibility', 'visible');
35 node.on('mouseleave', function(e){
36 M.core_group.hoveroverlay.hide();
37 M.core_group.hoveroverlay.get('boundingBox').setStyle('visibility', 'hidden');
43 M.core_group.init_index = function(Y, wwwroot, courseid) {
44 M.core_group.groupsCombo = new UpdatableGroupsCombo(wwwroot, courseid);
45 M.core_group.membersCombo = new UpdatableMembersCombo(wwwroot, courseid);