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