Fix: RecordUtil.getRecordValueWithUnit
This commit is contained in:
@@ -23,7 +23,8 @@ Chart.prototype.drawRecordGraph = function(index, date, bestRecord, min, max) {
|
||||
|
||||
this.drawText(
|
||||
posX, posY - Chart.CHART_HEIGHT - Chart.CHART_RECORD_OFFSET_Y,
|
||||
StringUtil.getRecordTextWithoutUnit(bestRecord) + StringUtil.getScoreUnit(sessionStorageManager.playingAppID)
|
||||
// StringUtil.getRecordTextWithoutUnit(bestRecord) + StringUtil.getScoreUnit(sessionStorageManager.playingAppID)
|
||||
RecordUtil.getRecordValueWithUnit(bestRecord, sessionStorageManager.getPlayingAppID())
|
||||
);
|
||||
|
||||
// chart
|
||||
|
||||
@@ -12,7 +12,7 @@ RecordUtil.getRecordValueText = function(record, appID) {
|
||||
if(appID == 104)
|
||||
return record.toFixed(2);
|
||||
else
|
||||
NumberUtil.numberWithCommas(Math.floor(record));
|
||||
return NumberUtil.numberWithCommas(Math.floor(record));
|
||||
}
|
||||
|
||||
RecordUtil.getRecordUnit = function(appID) {
|
||||
|
||||
Reference in New Issue
Block a user