diff --git a/src/main.js b/src/main.js index bed22a6..5ea745b 100755 --- a/src/main.js +++ b/src/main.js @@ -34,8 +34,8 @@ var Locale = { "Microsoft Access 2003 no está instalado en el sistema" ,"MDB file not found": "No se encontro el fichero MDB" - ,"Cache deleted": - "Caché borrada" + ,"Cache files have been deleted": + "Se han borrado todos los ficheros cacheados" } }; @@ -181,7 +181,7 @@ var App = { } } - this.showMessage(_('Cache deleted')); + this.showMessage(_('Cache files have been deleted'), 'notice'); }, onKeyPress: function(event) { @@ -393,15 +393,16 @@ var App = { this.regWrite(Conf.dsPath, 'PWD', '', 'REG_SZ'); this.disableUi(false); - this.showMessage(err.message); + this.showMessage(err.message, 'error'); this.resetForm(clearPassword); }, - showMessage: function(message) { + showMessage: function(message, className) { if (this.messageTimeout) clearTimeout(this.messageTimeout); var messageDiv = this.$('message'); + messageDiv.className = className; messageDiv.innerHTML = message; messageDiv.style.display = 'block'; this.messageTimeout = setTimeout(function() { App.hideMessage(); }, 10000); diff --git a/src/style.css b/src/style.css index 67bd4c1..0278302 100755 --- a/src/style.css +++ b/src/style.css @@ -94,6 +94,16 @@ button:hover { font-size: .9em; display: none; } +#message.error { + border-color: #644; + background-color: #EBB; + color: #644; +} +#message.notice { + border-color: #446; + background-color: #bbe; + color: #446; +} /* Spinner */