refs #5557 Cambio de tamaño y dev → development db
This commit is contained in:
parent
b7c1a6dd03
commit
d4eea78851
24
src/main.js
24
src/main.js
|
@ -54,8 +54,8 @@ var App = {
|
||||||
|
|
||||||
init: function() {
|
init: function() {
|
||||||
// Specify the size of window
|
// Specify the size of window
|
||||||
var width = 420;
|
var width = 450;
|
||||||
var height = 590;
|
var height = 595;
|
||||||
window.resizeTo(width, height);
|
window.resizeTo(width, height);
|
||||||
window.moveTo((screen.width - width) / 2, (screen.height - height) / 2);
|
window.moveTo((screen.width - width) / 2, (screen.height - height) / 2);
|
||||||
},
|
},
|
||||||
|
@ -90,15 +90,18 @@ var App = {
|
||||||
var path = 'HKCU\\Software\\Microsoft\\Office\\11.0\\Access\\';
|
var path = 'HKCU\\Software\\Microsoft\\Office\\11.0\\Access\\';
|
||||||
|
|
||||||
// Creates the Access configuration entries
|
// Creates the Access configuration entries
|
||||||
this.regWrites(path +'Settings', {
|
this.regWrites(
|
||||||
'Confirm Document Deletions': false,
|
path +'Settings', {
|
||||||
'Confirm Action Queries': false,
|
'Confirm Document Deletions': false,
|
||||||
'Confirm Record Changes': false
|
'Confirm Action Queries': false,
|
||||||
});
|
'Confirm Record Changes': false
|
||||||
|
}
|
||||||
|
);
|
||||||
this.regWrite(path + 'Security', 'Level', 1);
|
this.regWrite(path + 'Security', 'Level', 1);
|
||||||
|
|
||||||
// Creates the MySQL ODBC connection
|
// Creates the MySQL ODBC connection
|
||||||
this.createODBC(Conf.odbcPath,
|
this.createODBC(
|
||||||
|
Conf.odbcPath,
|
||||||
Conf.defaultDatasource,
|
Conf.defaultDatasource,
|
||||||
Conf.odbcDriver,
|
Conf.odbcDriver,
|
||||||
'keep for backward compatibility'
|
'keep for backward compatibility'
|
||||||
|
@ -109,7 +112,8 @@ var App = {
|
||||||
this.regWrite(Conf.regPath, 'selectedApiSource', Conf.defaultApiSource);
|
this.regWrite(Conf.regPath, 'selectedApiSource', Conf.defaultApiSource);
|
||||||
this.regWrite(Conf.regPath + '\\apiSources', Conf.defaultApiSource, Conf.defaultRemoteURL);
|
this.regWrite(Conf.regPath + '\\apiSources', Conf.defaultApiSource, Conf.defaultRemoteURL);
|
||||||
|
|
||||||
this.createODBC(Conf.odbcPath,
|
this.createODBC(
|
||||||
|
Conf.odbcPath,
|
||||||
Conf.productionDatasource,
|
Conf.productionDatasource,
|
||||||
Conf.odbcDriver,
|
Conf.odbcDriver,
|
||||||
Conf.productionDatasource
|
Conf.productionDatasource
|
||||||
|
@ -285,7 +289,7 @@ var App = {
|
||||||
if (myDatasource == 'verdnatura')
|
if (myDatasource == 'verdnatura')
|
||||||
myDatasource = 'production';
|
myDatasource = 'production';
|
||||||
|
|
||||||
if (myDatasource == 'production'||'test'||'dev') {
|
if (myDatasource == 'production'||'test'||'development') {
|
||||||
this.$('datasourceButton').className = myDatasource;
|
this.$('datasourceButton').className = myDatasource;
|
||||||
this.$('datasource').className = myDatasource;
|
this.$('datasource').className = myDatasource;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -32,8 +32,8 @@ option {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
#fields {
|
#fields {
|
||||||
max-width: 13em;
|
max-width: 14.4em;
|
||||||
margin-left: 3.32em;
|
margin-left: 3.4em;
|
||||||
}
|
}
|
||||||
#inputs > div {
|
#inputs > div {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
|
@ -100,8 +100,8 @@ button {
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
padding-right: 4.5em;
|
padding-right: 5.2em;
|
||||||
padding-left: 4.5em;
|
padding-left: 5.2em;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
font-size: .9em;
|
font-size: .9em;
|
||||||
|
@ -133,10 +133,10 @@ select {
|
||||||
#branchSelector {
|
#branchSelector {
|
||||||
float: right;
|
float: right;
|
||||||
margin-top: .7em;
|
margin-top: .7em;
|
||||||
width: 107px;
|
width: 125px;
|
||||||
display: none;
|
display: none;
|
||||||
padding-left: .3em;
|
padding-left: .4em;
|
||||||
padding-right: .8em;
|
padding-right: .9em;
|
||||||
max-width: 133px;
|
max-width: 133px;
|
||||||
}
|
}
|
||||||
#branchButton {
|
#branchButton {
|
||||||
|
@ -185,21 +185,20 @@ select.dev {
|
||||||
padding-top: .4em;
|
padding-top: .4em;
|
||||||
padding-left: .4em;
|
padding-left: .4em;
|
||||||
padding-right: .4em;
|
padding-right: .4em;
|
||||||
margin-left: 7em;
|
margin-left: 8em;
|
||||||
}
|
}
|
||||||
#datasource {
|
#datasource {
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-right: 1.5em;
|
padding-left: .2em;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
#datasourceSelector {
|
#datasourceSelector {
|
||||||
float: right;
|
float: right;
|
||||||
display: none;
|
display: none;
|
||||||
padding-right: .8em;
|
padding-left: .5em;
|
||||||
margin-right: .5em;
|
|
||||||
margin-top: -1.91em;
|
margin-top: -1.91em;
|
||||||
max-width: 133px;
|
width: 180px;
|
||||||
}
|
}
|
||||||
#datasourceButton {
|
#datasourceButton {
|
||||||
float: right;
|
float: right;
|
||||||
|
@ -217,7 +216,7 @@ select.dev {
|
||||||
#datasourceButton.test {
|
#datasourceButton.test {
|
||||||
background-color: #b1a32b;
|
background-color: #b1a32b;
|
||||||
}
|
}
|
||||||
#datasourceButton.dev {
|
#datasourceButton.development {
|
||||||
background-color: #31a527;
|
background-color: #31a527;
|
||||||
}
|
}
|
||||||
select.production {
|
select.production {
|
||||||
|
@ -226,7 +225,7 @@ select.production {
|
||||||
select.test {
|
select.test {
|
||||||
background-color: #b1a32b;
|
background-color: #b1a32b;
|
||||||
}
|
}
|
||||||
select.dev {
|
select.development {
|
||||||
background-color: #31a527;
|
background-color: #31a527;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,8 +238,8 @@ select.dev {
|
||||||
left: 11.8em;
|
left: 11.8em;
|
||||||
width: 20em;
|
width: 20em;
|
||||||
padding: .5em;
|
padding: .5em;
|
||||||
margin-left: -8.25em;
|
margin-left: -7.25em;
|
||||||
margin-top: 2em;
|
margin-top: 2.5em;
|
||||||
background-color: #EBB;
|
background-color: #EBB;
|
||||||
color: #644;
|
color: #644;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -26,10 +26,7 @@
|
||||||
onunload="App.onUnload(event)"
|
onunload="App.onUnload(event)"
|
||||||
onkeypress="App.onKeyPress(event)"
|
onkeypress="App.onKeyPress(event)"
|
||||||
onclick="App.onBodyClick(event)">
|
onclick="App.onBodyClick(event)">
|
||||||
<img
|
<img id="logo" src="verdnatura.svg" alt="Verdnatura"/>
|
||||||
id="logo"
|
|
||||||
src="verdnatura.svg"
|
|
||||||
alt="Verdnatura"/>
|
|
||||||
<div id="fields">
|
<div id="fields">
|
||||||
<div id="inputs">
|
<div id="inputs">
|
||||||
<div>
|
<div>
|
||||||
|
@ -58,11 +55,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="branchOptions">
|
<div id="branchOptions">
|
||||||
<div id="branchButton">
|
<div id="branchButton">
|
||||||
<img
|
<img id="branchLogo" src="branch.png" onclick="App.openOptions()" alt="Change branch"/>
|
||||||
id="branchLogo"
|
|
||||||
src="branch.png"
|
|
||||||
onclick="App.openOptions()"
|
|
||||||
alt="Change branch"/>
|
|
||||||
<div id="branchSelector">
|
<div id="branchSelector">
|
||||||
<select id="branch" onchange="App.onChangeBranch()"></select>
|
<select id="branch" onchange="App.onChangeBranch()"></select>
|
||||||
</div>
|
</div>
|
||||||
|
@ -70,22 +63,15 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="datasourceOptions">
|
<div id="datasourceOptions">
|
||||||
<div id="datasourceButton">
|
<div id="datasourceButton">
|
||||||
<img
|
<img id="datasourceLogo" src="datasource.png" onclick="App.openOptions()" alt="Change datasource"/>
|
||||||
id="datasourceLogo"
|
|
||||||
src="datasource.png"
|
|
||||||
onclick="App.openOptions()"
|
|
||||||
alt="Change datasource"/>
|
|
||||||
<div id="datasourceSelector">
|
<div id="datasourceSelector">
|
||||||
<select id="datasource" onchange="App.onChangeDatasource()">
|
<select id="datasource" onchange="App.onChangeDatasource()"></select>
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="background"></div>
|
<div id="background"></div>
|
||||||
<div id="spinner">
|
<div id="spinner">
|
||||||
<img
|
<img alt="Cargando..." src="spinner.gif"/>
|
||||||
alt="Cargando..."
|
|
||||||
src="spinner.gif"/>
|
|
||||||
<br/>
|
<br/>
|
||||||
<span id="loading-message"></span>
|
<span id="loading-message"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue