Fix: revise UI

This commit is contained in:
2018-12-12 00:57:35 +09:00
parent f3a0c469b6
commit c13d81158f
5 changed files with 18 additions and 13 deletions
+7 -3
View File
@@ -262,9 +262,9 @@ InputScore.prototype.setVisibleSubjectPanel = function(flag, companyName) {
}
}
InputScore.prototype.onClickCompanySubjectButton = function(subjectName) {
this.setSubjectFullname(subjectName);
this.selectedSubjectData = this.licenseDataManager.getSubjectDataByName(subjectName);
InputScore.prototype.onClickCompanySubjectButton = function(subjectFullname) {
this.setSubjectFullname(subjectFullname);
this.selectedSubjectData = this.licenseDataManager.getSubjectDataByName(subjectFullname);
}
@@ -282,8 +282,12 @@ InputScore.prototype.makePanelSprite = function(x, y, width, height, color) {
InputScore.prototype.onClickSendToServerButton = function() {
console.log("send data to server");
console.log(this.subjectFullname);
console.log(this.scoreText.value);
var subjectData = this.licenseDataManager.getSubjectDataByName(this.subjectFullname);
if(subjectData != null)
console.log(subjectData.getGrade(this.scoreText.value))
console.log(this.passwordText.value);
}