mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-34741 use 2in3 in groups UI
This commit is contained in:
parent
b8b4f65b9c
commit
e3c1d655f8
3 changed files with 10 additions and 5 deletions
|
@ -77,7 +77,9 @@ function UpdatableGroupsCombo(wwwRoot, courseId) {
|
|||
*/
|
||||
|
||||
// Hide the updategroups input since AJAX will take care of this.
|
||||
YAHOO.util.Dom.setStyle("updategroups", "display", "none");
|
||||
YUI().use('yui2-dom', function (Y) {
|
||||
Y.YUI2.util.Dom.setStyle("updategroups", "display", "none");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
@ -129,7 +131,9 @@ function UpdatableMembersCombo(wwwRoot, courseId) {
|
|||
};
|
||||
|
||||
// Hide the updatemembers input since AJAX will take care of this.
|
||||
YAHOO.util.Dom.setStyle("updatemembers", "display", "none");
|
||||
YUI().use('yui2-dom', function (Y) {
|
||||
Y.YUI2.util.Dom.setStyle("updatemembers", "display", "none");
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -181,7 +185,10 @@ UpdatableMembersCombo.prototype.refreshMembers = function () {
|
|||
|
||||
if(singleSelection) {
|
||||
var sUrl = this.wwwRoot+"/group/index.php?id="+this.courseId+"&group="+groupId+"&act_ajax_getmembersingroup";
|
||||
YAHOO.util.Connect.asyncRequest("GET", sUrl, this.connectCallback, null);
|
||||
var callback = this.connectCallback;
|
||||
YUI().use('yui2-connection', function (Y) {
|
||||
Y.YUI2.util.Connect.asyncRequest("GET", sUrl, callback, null);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue