refactor refs #5308 Requested changes
This commit is contained in:
parent
13489bc713
commit
20e2ee4f20
11
src/main.js
11
src/main.js
|
@ -85,6 +85,9 @@ var App = {
|
||||||
this.dsName = mdbDsName || userDefaultDatasource || Conf.defaultDatasource;
|
this.dsName = mdbDsName || userDefaultDatasource || Conf.defaultDatasource;
|
||||||
this.heartClicks = 0;
|
this.heartClicks = 0;
|
||||||
|
|
||||||
|
// Change title
|
||||||
|
document.title = document.title + ' - ' + this.module;
|
||||||
|
|
||||||
// Creates the necessary registry entries
|
// Creates the necessary registry entries
|
||||||
var lastVersion = this.regRead(Conf.regPath, 'lastExecutedVersion');
|
var lastVersion = this.regRead(Conf.regPath, 'lastExecutedVersion');
|
||||||
|
|
||||||
|
@ -286,12 +289,12 @@ var App = {
|
||||||
style.display = 'none';
|
style.display = 'none';
|
||||||
},
|
},
|
||||||
refreshDeveloperMode: function() {
|
refreshDeveloperMode: function() {
|
||||||
var stylesName = ['branchOptions', 'datasourceOptions']
|
var stylesName = ['branchOptions', 'datasourceOptions'];
|
||||||
for (var n in stylesName) {
|
for (var n in stylesName) {
|
||||||
var style = this.$(stylesName[n]).style;
|
var style = this.$(stylesName[n]).style;
|
||||||
this.regRead(Conf.regPath, 'hasDeveloperMode')
|
style.visibility = this.regRead(Conf.regPath, 'hasDeveloperMode')
|
||||||
? style.visibility = 'visible'
|
? 'visible'
|
||||||
: style.visibility = 'hidden'
|
: 'hidden';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onChangeBranch: function() {
|
onChangeBranch: function() {
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
windowsstate="normal"/>
|
windowsstate="normal"/>
|
||||||
</head>
|
</head>
|
||||||
<body
|
<body
|
||||||
onload="document.title = document.title + ' - ' + this.module()"
|
|
||||||
onload="App.onLoad(event)"
|
onload="App.onLoad(event)"
|
||||||
onunload="App.onUnload(event)"
|
onunload="App.onUnload(event)"
|
||||||
onkeypress="App.onKeyPress(event)"
|
onkeypress="App.onKeyPress(event)"
|
||||||
|
|
Loading…
Reference in New Issue