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.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() {
|
||||
|
|
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue