refs #4975 Uploaded version number

This commit is contained in:
Guillermo Bonet 2023-01-31 14:06:29 +01:00
parent fd805e952a
commit 42c1426ff7
1 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
var Conf = {
appName: 'Verdnatura',
odbcPath: 'HKCU\\Software\\ODBC\\ODBC.INI\\',
odbcPath: 'HKCU\\SOFTWARE\\ODBC\\ODBC.INI\\',
regPath: 'HKCU\\SOFTWARE\\Verdnatura\\vn-access',
defaultModule: 'vn',
defaultLocale: 'es',
@ -12,7 +12,7 @@ var Conf = {
maxCorruptSize: 600,
odbcDriver: 'MySQL ODBC 8.0 Unicode Driver',
driverPath: '\\MySQL\\Connector ODBC 8.0\\myodbc8w.dll',
version: 4,
version: 5,
cdnURL: 'https://cdn.verdnatura.es/vn-access',
identifier: '.vn'
};
@ -86,7 +86,7 @@ var App = {
var path = 'HKCU\\Software\\Microsoft\\Office\\11.0\\Access\\';
// Creates the Access configuration entries
this.regWrites(path + 'Settings', {
this.regWrites(path +'Settings', {
'Confirm Document Deletions': false,
'Confirm Action Queries': false,
'Confirm Record Changes': false
@ -99,11 +99,11 @@ var App = {
this.regWrite(Conf.regPath, 'remoteURL', Conf.defaultRemoteURL);
this.regWrite(Conf.regPath, 'lastExecutedVersion', Conf.version);
// Delete old strings values (REMOVE IN VERSION 5)
this.regDelete(Conf.regPath + 'configured');
this.regDelete(Conf.regPath + 'remember');
this.regDelete(Conf.odbcPath + 'verdnatura');
this.regDelete(Conf.odbcPath + 'ODBC Data Sources\\verdnatura');
// Delete old strings values (REMOVE IN VERSION 6)
this.regDelete(Conf.regPath +'\\configured');
this.regDelete(Conf.regPath + '\\remember');
this.regDelete(Conf.odbcPath +'verdnatura\\');
this.regDelete(Conf.odbcPath +'ODBC Data Sources\\verdnatura');
}
var notSignOut = this.regRead(Conf.regPath, 'notSignOut');
@ -144,7 +144,7 @@ var App = {
selectDatarouce.options.add(option[y])
}
}
// In case old general odbc (REMOVE IN VERSION 5)
// In case old general odbc (REMOVE IN VERSION 6)
if (this.dsName == 'verdnatura') {
this.dsName = Conf.defaultDatasource;
this.$('datasource').value = this.dsName + Conf.identifier;