Add: allow edit player's entercode
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user