From 8b95302e9737f9934bc624ee883fc44417d0322d Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Sat, 25 May 2013 00:29:22 -0600 Subject: [PATCH] Update information on what testclient.html supports --- README.md | 3 +-- js/client.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4656d0a14..bd04183d0 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/js/client.js b/js/client.js index ac2c8dd9e..767058d96 100644 --- a/js/client.js +++ b/js/client.js @@ -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(); }; }, /**