Add: allow edit player's entercode

This commit is contained in:
2019-08-18 15:34:40 +09:00
parent 1926c0e42b
commit 48d50b3f35
4 changed files with 49 additions and 31 deletions
+21
View File
@@ -91,6 +91,27 @@ DBService.prototype.tddRun = function(command, onSucceededListener, onFailedList
xhr.send("command=" + command);
}
// allow edit setting for play enter code
DBService.prototype.requestAllowEditEnterCode = function(onSucceededListener, onFailedListener) {
var xhr = this.makeXhr(
"php/menu/allow_edit_entercode.php",
(function() { // onreadystatechange
if(xhr.readyState == 4 && xhr.status == 200) {
var replyJSON = JSON.parse(xhr.responseText);
if(replyJSON != null)
onSucceededListener(replyJSON);
else
onFailedListener(replyJSON);
}
}).bind(this)
);
xhr.send("maestroID=" + this.maestroID);
}
// writing
DBService.prototype.requestWritingPlayerList = function(onSucceededListener, onFailedListener) {
var xhr = this.makeXhr(