Fix: db_connect_manager - requestPlayerHistory parameters
This commit is contained in:
1 parent
e324e9c41a
commit
1fe0b08e9f
3 files changed
+3
-6
No files matched your search
@@ -200,7 +200,7 @@ DBConnectManager.prototype.requestTypingTestAppList = function(maestroID, player
|
||||
xhr.send("maestro_id=" + maestroID + "&player_id=" + playerID);
|
||||
}
|
||||
|
||||
DBConnectManager.prototype.requestPlayerHistory = function(maestroID, date, listener) {
|
||||
DBConnectManager.prototype.requestPlayerHistory = function(date, listener) {
|
||||
var historyRecordManager = new HistoryRecordManager();
|
||||
|
||||
/*
|
||||
@@ -225,8 +225,8 @@ DBConnectManager.prototype.requestPlayerHistory = function(maestroID, date, list
|
||||
|
||||
if(replyJSON != null)
|
||||
listener(self.parseJSONtoHistoryRecord(replyJSON));
|
||||
else
|
||||
onFailedListener(replyJSON);
|
||||
// else
|
||||
// onFailedListener(replyJSON);
|
||||
}
|
||||
};
|
||||
var params = "MaestroID=" + sessionStorageManager.getMaestroID()
|
||||
|
||||
@@ -54,8 +54,6 @@ function HistoryBoard(dataType) {
|
||||
}
|
||||
|
||||
HistoryBoard.prototype.parseHistoryRecordManagerData = function(historyRecordManager) {
|
||||
console.log(historyRecordManager);
|
||||
|
||||
if(historyRecordManager.getCount() == 0) {
|
||||
console.log("history board - no data");
|
||||
return;
|
||||
|
||||
@@ -99,7 +99,6 @@ var Start = {
|
||||
var today = new Date();
|
||||
var date = DateUtil.getYYYYMMDD(today);
|
||||
this.dbConnectManager.requestPlayerHistory(
|
||||
sessionStorageManager.getMaestroID(),
|
||||
date,
|
||||
(function(historyRecordManager) {
|
||||
if(historyRecordManager.count == 0) {
|
||||
|
||||
Reference in new issue
Block a user