芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/moodledata/localcache/js/5ea4034be0a26dd92b5b3b194b2beefba58754f9
M.core_group={hoveroverlay:null};M.core_group.init_hover_events=function(Y,events){this.hoveroverlay=this.hoveroverlay||(function(){var overlay=new Y.Overlay({bodyContent:'Loading',visible:!1,zIndex:2});overlay.render(Y.one('#page'));return overlay})();Y.all('.group_hoverdescription').each(function(){var node=this.ancestor();var id=this.getAttribute('data-groupid');node.on('mouseenter',function(){M.core_group.hoveroverlay.set('xy',[this.getX()+(this.get('offsetWidth')/2),this.getY()+this.get('offsetHeight')-5]);M.core_group.hoveroverlay.set("bodyContent",events[id]);M.core_group.hoveroverlay.show();M.core_group.hoveroverlay.get('boundingBox').setStyle('visibility','visible')});node.on('mouseleave',function(){M.core_group.hoveroverlay.hide();M.core_group.hoveroverlay.get('boundingBox').setStyle('visibility','hidden')})})};M.core_group.init_index=function(Y,wwwroot,courseid){M.core_group.groupsCombo=new UpdatableGroupsCombo(wwwroot,courseid);M.core_group.membersCombo=new UpdatableMembersCombo(wwwroot,courseid)};M.core_group.groupslist=function(Y,preventgroupremoval){var actions={init:function(){Y.one('#groups').on('change',this.check_deletable,this);this.check_deletable()},check_deletable:function(){var candelete=!0;var optionselected=!1;Y.one('#groups').get('options').each(function(option){if(option.get('selected')){optionselected=!0;if(option.getAttribute('value')in preventgroupremoval){candelete=!1}}},this);var deletebutton=Y.one('#deletegroup');if(candelete&&optionselected){deletebutton.removeAttribute('disabled')}else{deletebutton.setAttribute('disabled','disabled')}}} actions.init()}