Fix: revise UI
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user