Add: add license score
This commit is contained in:
@@ -513,6 +513,23 @@ DBConnectManager.prototype.requestLicenseScore = function(maestroID, playerID, o
|
||||
xhr.send("MaestroID=" + maestroID + "&PlayerID=" + playerID);
|
||||
}
|
||||
|
||||
DBConnectManager.prototype.addLicenseScore = function(maestroID, playerID, subjectName, score, onSucceededListener, onFailedListener) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", this.phpPath + "server/license_timer/add_license_score.php", true);
|
||||
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
xhr.onreadystatechange = function() {
|
||||
if(xhr.readyState == 4 && xhr.status == 200) {
|
||||
var replyJSON = JSON.parse(xhr.responseText);
|
||||
|
||||
if(replyJSON != null)
|
||||
onSucceededListener(replyJSON);
|
||||
else
|
||||
onFailedListener(replyJSON);
|
||||
}
|
||||
};
|
||||
xhr.send("MaestroID=" + maestroID + "&PlayerID=" + playerID + "&SubjectName=" + subjectName + "&Score=" + score);
|
||||
}
|
||||
|
||||
|
||||
|
||||
DBConnectManager.prototype.loadTempPlayerHistory = function(historyRecordManager) {
|
||||
|
||||
Reference in New Issue
Block a user