this.courseId = courseId;
this.connectCallback = {
- success: function(o) {
+ success: function(t, o) {
if (o.responseText !== undefined) {
var selectEl = document.getElementById("members");
removeLoaderImgs("membersloader", "memberslabel");
},
- failure: function(o) {
+ failure: function() {
removeLoaderImgs("membersloader", "memberslabel");
}
if(singleSelection) {
var sUrl = this.wwwRoot+"/group/index.php?id="+this.courseId+"&group="+groupId+"&act_ajax_getmembersingroup";
- var callback = this.connectCallback;
- YUI().use('yui2-connection', function (Y) {
- Y.YUI2.util.Connect.asyncRequest("GET", sUrl, callback, null);
+ var self = this;
+ YUI().use('io', function (Y) {
+ Y.io(sUrl, {
+ method: 'GET',
+ context: this,
+ on: self.connectCallback
+ });
});
}
};
addselect = document.getElementById('addselect');
addselect.onchange = updateUserSummary;
-}
\ No newline at end of file
+}
});
new WikiHelper(args);
};
-M.mod_wiki.renew_lock = function(Y, args) {
- function renewLock() {
- var args = {};
- args['sesskey'] = M.cfg.sesskey;
- args['pageid'] = wiki.pageid;
- if (wiki.section) {
- args['section'] = wiki.section;
- }
- var callback = {};
- Y.use('yui2-connection', function(Y) {
- Y.YUI2.util.Connect.asyncRequest('GET', 'lock.php?' + build_querystring(args), callback);
- });
+M.mod_wiki.renew_lock = function() {
+ var args = {
+ sesskey: M.cfg.sesskey,
+ pageid: wiki.pageid
+ };
+ if (wiki.section) {
+ args.section = wiki.section;
}
- setInterval(renewLock, wiki.renew_lock_timeout * 1000);
-}
+ YUI().use('io', function(Y) {
+ function renewLock() {
+ Y.io('lock.php?' + build_querystring(args), {
+ method: 'POST'
+ });
+ }
+ setInterval(renewLock, wiki.renew_lock_timeout * 1000);
+ });
+};
M.mod_wiki.history = function(Y, args) {
var compare = false;
var comparewith = false;