Reviewed-on: #5
This commit is contained in:
commit
fdae6b93db
|
@ -1,6 +1,6 @@
|
|||
|
||||
#define MyAppName "Verdnatura"
|
||||
#define MyAppVersion "5"
|
||||
#define MyAppVersion "6"
|
||||
#define MyAppPublisher "Verdnatura"
|
||||
#define MyAppURL "https://www.verdnatura.es/"
|
||||
|
||||
|
|
12
src/main.js
12
src/main.js
|
@ -12,7 +12,7 @@ var Conf = {
|
|||
maxCorruptSize: 600,
|
||||
odbcDriver: 'MySQL ODBC 8.0 Unicode Driver',
|
||||
driverPath: '\\MySQL\\Connector ODBC 8.0\\myodbc8w.dll',
|
||||
version: 5,
|
||||
version: 6,
|
||||
cdnURL: 'https://cdn.verdnatura.es/vn-access',
|
||||
identifier: '.vn',
|
||||
productionDatasource: 'production.vn'
|
||||
|
@ -62,7 +62,7 @@ var App = {
|
|||
this.disableUi(false);
|
||||
},
|
||||
onLoad: function() {
|
||||
|
||||
|
||||
// Initializes the global variables
|
||||
var split = Verdnatura.commandLine.match(/(?:[^\s"]+|"[^"]*")+/g);
|
||||
if (split.length > 1)
|
||||
|
@ -87,7 +87,7 @@ var App = {
|
|||
|
||||
if (!lastVersion || lastVersion != Conf.version) {
|
||||
var path = 'HKCU\\Software\\Microsoft\\Office\\11.0\\Access\\';
|
||||
|
||||
|
||||
// Creates the Access configuration entries
|
||||
this.regWrites(path +'Settings', {
|
||||
'Confirm Document Deletions': false,
|
||||
|
@ -95,7 +95,7 @@ var App = {
|
|||
'Confirm Record Changes': false
|
||||
});
|
||||
this.regWrite(path + 'Security', 'Level', 1);
|
||||
|
||||
|
||||
// Creates the MySQL ODBC connection
|
||||
this.createODBC(Conf.odbcPath,
|
||||
Conf.defaultDatasource,
|
||||
|
@ -105,14 +105,14 @@ var App = {
|
|||
|
||||
this.regWrite(Conf.regPath, 'remoteURL', Conf.defaultRemoteURL);
|
||||
this.regWrite(Conf.regPath, 'lastExecutedVersion', Conf.version);
|
||||
this.regWrite(Conf.regPath + '\\apiSources', 'master', Conf.defaultRemoteURL + '/api/');
|
||||
|
||||
|
||||
this.createODBC(Conf.odbcPath,
|
||||
Conf.productionDatasource,
|
||||
Conf.odbcDriver,
|
||||
Conf.productionDatasource
|
||||
);
|
||||
|
||||
|
||||
this.regDelete(Conf.regPath +'\\configured');
|
||||
this.regDelete(Conf.regPath + '\\remember');
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<title>v5</title>
|
||||
<title>v6</title>
|
||||
<link rel="stylesheet" href="style.css"/>
|
||||
<script type="text/javascript" src="main.js"></script>
|
||||
<hta:application
|
||||
|
|
Loading…
Reference in New Issue