IE caching fixes, old pgsql code removed

This commit is contained in:
Juan Ferrer 2020-01-22 17:01:41 +01:00
parent 9dda099b41
commit 08d72c5a58
2 changed files with 25 additions and 60 deletions

View File

@ -100,27 +100,6 @@ var App = {
'Mysql ODBC 5.1 Driver', 'Mysql ODBC 5.1 Driver',
params params
); );
// Creates the PosgreSQL ODBC connection
var driverPath = this.getEnv('ProgramFiles')
+'\\psqlODBC\\0804\\bin\\psqlodbc35w.dll';
var params = {
'Driver' : driverPath,
'DESCRIPTION' : Conf.appName,
'Servername' : Conf.dbHost,
'DATABASE' : 'vn',
'UID' : '',
'USERNAME' : '',
'PASSWORD' : ''
};
this.createOdbc(
'verdnaturapg',
'PostgreSQL Unicode',
params
);
// Marks the application as configured // Marks the application as configured
@ -280,8 +259,13 @@ var App = {
if (localVersion < lastVersion) { if (localVersion < lastVersion) {
this._disableUi(true, _('Updating')); this._disableUi(true, _('Updating'));
var queryString = lastVersion
? 'v'+ lastVersion
: new Date().getTime();
var request = new ActiveXObject('MSXML2.XMLHTTP'); var request = new ActiveXObject('MSXML2.XMLHTTP');
request.open('GET', this.remoteFile +'?'+ new Date().getTime(), true); request.open('GET', this.remoteFile +'?'+ queryString, true);
request.onreadystatechange = function() { request.onreadystatechange = function() {
App._onRequestReady(request); App._onRequestReady(request);
}; };

View File

@ -1,5 +1,4 @@
body body {
{
font-size: 18px; font-size: 18px;
padding: .8em; padding: .8em;
overflow: hidden; overflow: hidden;
@ -9,37 +8,30 @@ body
/* Login form */ /* Login form */
#logo #logo {
{
margin-bottom: .5em; margin-bottom: .5em;
} }
button, button,
input, input,
select select {
{
font-size: 1em; font-size: 1em;
} }
#fields #fields {
{
max-width: 10em; max-width: 10em;
margin: 0 auto; margin: 0 auto;
} }
#fields > div #fields > div {
{
margin-top: .5em; margin-top: .5em;
} }
#fields > div > * #fields > div > * {
{
display: block; display: block;
} }
label label {
{
font-weight: normal; font-weight: normal;
font-size: .9em; font-size: .9em;
} }
input[type='text'], input[type='text'],
input[type='password'] input[type='password'] {
{
width: 100%; width: 100%;
border: none; border: none;
border-bottom: 1px solid #888; border-bottom: 1px solid #888;
@ -47,37 +39,31 @@ input[type='password']
color: #666; color: #666;
padding: .3em; padding: .3em;
} }
#checkbox #checkbox {
{
margin-top: .8em; margin-top: .8em;
} }
#submit #submit {
{
margin-top: .5em; margin-top: .5em;
} }
#checkbox, #checkbox,
#submit #submit {
{
text-align: center; text-align: center;
} }
button button {
{
border: none; border: none;
color: #008D77; color: #008D77;
background-color: transparent; background-color: transparent;
padding: .4em; padding: .4em;
text-transform: uppercase; text-transform: uppercase;
} }
button:hover button:hover {
{
background-color: #EEE; background-color: #EEE;
cursor: pointer; cursor: pointer;
} }
/* Message */ /* Message */
#message #message {
{
z-index: 2; z-index: 2;
position: absolute; position: absolute;
top: 2em; top: 2em;
@ -95,8 +81,7 @@ button:hover
/* Spinner */ /* Spinner */
#background #background {
{
z-index: 1; z-index: 1;
position: absolute; position: absolute;
width: 100%; width: 100%;
@ -108,8 +93,7 @@ button:hover
left: 0; left: 0;
display: none; display: none;
} }
#spinner #spinner {
{
z-index: 2; z-index: 2;
position: absolute; position: absolute;
padding: .8em; padding: .8em;
@ -124,17 +108,14 @@ button:hover
text-align: center; text-align: center;
border: 1px solid black; border: 1px solid black;
} }
#spinner * #spinner * {
{
vertical-align: middle; vertical-align: middle;
} }
#spinner img #spinner img {
{
width: 1.8em; width: 1.8em;
height: 1.8em; height: 1.8em;
margin-right: .5em; margin-right: .5em;
} }
#loading-message #loading-message {
{
font-size: .9em; font-size: .9em;
} }