refactor refs #5308 Requested changes

This commit is contained in:
Guillermo Bonet 2024-02-23 13:24:05 +01:00
parent 13489bc713
commit 20e2ee4f20
2 changed files with 7 additions and 5 deletions

View File

@ -85,6 +85,9 @@ var App = {
this.dsName = mdbDsName || userDefaultDatasource || Conf.defaultDatasource;
this.heartClicks = 0;
// Change title
document.title = document.title + ' - ' + this.module;
// Creates the necessary registry entries
var lastVersion = this.regRead(Conf.regPath, 'lastExecutedVersion');
@ -286,12 +289,12 @@ var App = {
style.display = 'none';
},
refreshDeveloperMode: function() {
var stylesName = ['branchOptions', 'datasourceOptions']
var stylesName = ['branchOptions', 'datasourceOptions'];
for (var n in stylesName) {
var style = this.$(stylesName[n]).style;
this.regRead(Conf.regPath, 'hasDeveloperMode')
? style.visibility = 'visible'
: style.visibility = 'hidden'
style.visibility = this.regRead(Conf.regPath, 'hasDeveloperMode')
? 'visible'
: 'hidden';
}
},
onChangeBranch: function() {

View File

@ -22,7 +22,6 @@
windowsstate="normal"/>
</head>
<body
onload="document.title = document.title + ' - ' + this.module()"
onload="App.onLoad(event)"
onunload="App.onUnload(event)"
onkeypress="App.onKeyPress(event)"