Update information on what testclient.html supports

This commit is contained in:
Cathy J. Fitzpatrick 2013-05-25 00:29:22 -06:00
parent 9f55f38485
commit 8b95302e97
2 changed files with 9 additions and 5 deletions

View File

@ -26,8 +26,7 @@ Certain things will fail:
+ Changing name to a registered name other than the one you are currently
logged in with (however, changing to an unregistered name will work, and
you can even change back to your original registered name afterward)
+ The ladder tab
+ The `/ladder` command
+ The ladder room (however, the `/ladder` command does work)
Everything else can be tested, though.

View File

@ -397,12 +397,17 @@
*/
initializeTestClient: function() {
var self = this;
$.get = function(uri, callback/*, type*/) {
// `type` is unused
var showUnsupported = function() {
self.addPopupMessage('The requested action is not supported by testclient.html. Please complete this action in the official client instead.');
};
$.get = function(uri, callback, type) {
if (type === 'html') {
return showUnsupported();
}
self.addPopup(ProxyPopup, {uri: uri, callback: callback});
};
$.post = function(/*uri, data, callback, type*/) {
self.addPopupMessage('The requested action is not yet supported by testclient.html. Please log in or register using the official client, and then load testclient.html afterward.');
showUnsupported();
};
},
/**