feat: refs #5308 Upgrade to v7 #6
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')
|
||||
juan
commented
Outdated
Review
```
style.visibility = this.regRead(Conf.regPath, 'hasDeveloperMode')
? 'visible'
: 'hidden';
```
|
||||
? 'visible'
|
||||
: 'hidden';
|
||||
}
|
||||
},
|
||||
onChangeBranch: function() {
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
windowsstate="normal"/>
|
||||
</head>
|
||||
<body
|
||||
onload="document.title = document.title + ' - ' + this.module()"
|
||||
onload="App.onLoad(event)"
|
||||
juan
commented
Esto ya se hace en el método Esto ya se hace en el método `App.onLoad(event)`
|
||||
onunload="App.onUnload(event)"
|
||||
onkeypress="App.onKeyPress(event)"
|
||||
|
|
Loading…
Reference in New Issue