Add: allow edit player's entercode
This commit is contained in:
@@ -72,9 +72,10 @@ MainMenu.prototype.fontLoaded = function() {
|
||||
);
|
||||
|
||||
// top UI
|
||||
this.makeButtons();
|
||||
this.backButton = new BackButton(
|
||||
(function() { console.log("back"); }).bind(this)
|
||||
);
|
||||
this.backButton.applyLoadedFont();
|
||||
this.settingButton.applyLoadedFont();
|
||||
|
||||
this.makeAppGroupTab();
|
||||
this.makeLanguageTab();
|
||||
@@ -100,6 +101,8 @@ MainMenu.prototype.fontLoaded = function() {
|
||||
this.activeSavedAppGroupTab();
|
||||
this.activeSavedLanguageTab();
|
||||
// this.loadAppData();
|
||||
|
||||
this.loadAllowEditEnterCode();
|
||||
}
|
||||
|
||||
|
||||
@@ -109,26 +112,14 @@ MainMenu.prototype.back = function() {
|
||||
location.href = '../../web/client/login.html';
|
||||
}
|
||||
|
||||
MainMenu.prototype.loadAllowEditEnterCode = function(screenTopUI) {
|
||||
/*
|
||||
var dbConnectManager = new DBConnectManager();
|
||||
dbConnectManager.requestAllowEditEnterCode(
|
||||
sessionStorageManager.getMaestroID(),
|
||||
|
||||
MainMenu.prototype.loadAllowEditEnterCode = function() {
|
||||
this.dbService.requestAllowEditEnterCode(
|
||||
(function(replyJSON) {
|
||||
if(replyJSON["AllowEditEnterCode"] == "1") {
|
||||
screenTopUI.makeSetupButton( (function() {
|
||||
console.log("setup");
|
||||
location.href = '../../web/client/setup.html';
|
||||
}).bind(this) );
|
||||
}
|
||||
if(parseInt(replyJSON.allowEditEntercode) === 1)
|
||||
this.makeSettingButton();
|
||||
}).bind(this),
|
||||
|
||||
(function(replyJSON) {
|
||||
this.loadFailed(replyJSON);
|
||||
}).bind(this)
|
||||
(function(replyJSON) { console.log(replyJSON); }).bind(this)
|
||||
);
|
||||
*/
|
||||
}
|
||||
|
||||
MainMenu.prototype.loadAppData = function() {
|
||||
@@ -140,9 +131,7 @@ MainMenu.prototype.loadAppData = function() {
|
||||
this.updateAppButtons(replyJSON.appGroup, replyJSON.appData);
|
||||
// this.updateLanguageTab(replyJSON.appGroup);
|
||||
}).bind(this),
|
||||
(function(replyJSON) {
|
||||
console.log(replyJSON);
|
||||
}).bind(this)
|
||||
(function(replyJSON) { console.log(replyJSON); }).bind(this)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -420,14 +409,11 @@ MainMenu.prototype.updatePlayAppButtons = function(appData) {
|
||||
}
|
||||
|
||||
|
||||
MainMenu.prototype.makeButtons = function() {
|
||||
this.backButton = new BackButton(
|
||||
(function() { console.log("back"); }).bind(this)
|
||||
);
|
||||
|
||||
MainMenu.prototype.makeSettingButton = function() {
|
||||
this.settingButton = new SettingButton(
|
||||
(function() { console.log("setting"); }).bind(this)
|
||||
(function() { location.href = '../../web/client/setup.html'; }).bind(this)
|
||||
);
|
||||
this.settingButton.applyLoadedFont();
|
||||
}
|
||||
|
||||
MainMenu.prototype.activeSavedAppGroupTab = function() {
|
||||
|
||||
Reference in New Issue
Block a user