Fixed query alert to be not displayed when not needed
diff --git a/Changes b/Changes
index e786ab3..1171357 100755
--- a/Changes
+++ b/Changes
@@ -1,4 +1,4 @@
-0.21 2016-09-12
+0.21 2016-11-07
- Use textSigle for API communication instead of
{corpus,doc,text}ID.
- Added alert to hint helper.
@@ -8,6 +8,10 @@
- Hint menu do not append menus anymore.
- Updated dependency for bugfixed Localize.
- Improved readme for localization generation.
+ - Fixed select menus to show selected item on
+ initialization.
+ - Improved compatibility for new text sigles.
+ - Fixed alert to not be correctly hidden.
0.20 2016-05-25
- Improved menu using sliders.
diff --git a/dev/js/src/hint/alert.js b/dev/js/src/hint/alert.js
index f34fde8..768d719 100644
--- a/dev/js/src/hint/alert.js
+++ b/dev/js/src/hint/alert.js
@@ -11,20 +11,20 @@
this._type = 'alert';
this.active = false;
this._element = document.createElement('div');
- this._element.style.opacity = 0;
+ this._element.style.display = 'none';
this._element.classList.add('alert', 'hint');
return this;
},
show : function (msg) {
this._element.textContent = msg;
this.active = true;
- this._element.style.opacity = 1;
+ this._element.style.display = 'block';
},
hide : function () {
if (!this.active)
- return false;
- this._element.style.opacity = 0;
+ return false;
+ this._element.style.display = 'none';
this.active = false;
return true;
},
diff --git a/dev/scss/header/hint.scss b/dev/scss/header/hint.scss
index b916d5c..d5c6a4a 100644
--- a/dev/scss/header/hint.scss
+++ b/dev/scss/header/hint.scss
@@ -25,7 +25,8 @@
div.alert.hint {
position: absolute;
- background-color: rgba(254,26,0,.9); // from alertify
+// background-color: rgba(254,26,0,.9); // from alertify
+ background-color: rgb(254,26,0); // from alertify
color: $nearly-white;
padding: $item-padding;
margin-top: 8px;
@@ -51,7 +52,7 @@
border: {
width: 0 8px 12px 0;
style: solid;
- color: rgba(254,26,0,.9) transparent; // from alertify
+ color: rgb(254,26,0) transparent; // from alertify
}
}
diff --git a/dev/scss/main/alertify/alertify-default.scss b/dev/scss/main/alertify/alertify-default.scss
index 7228a29..97a1232 100644
--- a/dev/scss/main/alertify/alertify-default.scss
+++ b/dev/scss/main/alertify/alertify-default.scss
@@ -65,7 +65,8 @@
.alertify-log {
background: #1F1F1F;
- background: rgba(0,0,0,.9);
+// background: rgba(0,0,0,.9);
+ background: rgb(0,0,0);
padding: 15px;
border-radius: 4px;
color: #FFF;
@@ -73,9 +74,11 @@
}
.alertify-log-error {
background: #FE1A00;
- background: rgba(254,26,0,.9);
+ // background: rgba(254,26,0,.9);
+ background: rgb(254,26,0);
}
.alertify-log-success {
background: #5CB811;
- background: rgba(92,184,17,.9);
+// background: rgba(92,184,17,.9);
+ background: rgb(92,184,17);
}
\ No newline at end of file
diff --git a/package.json b/package.json
index bb147e4..31b2843 100755
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "Kalamar",
"description": "Mojolicious-based Frontend for KorAP",
"license" : "BSD-2-Clause",
- "version": "0.21.0",
+ "version": "0.21.1",
"repository" : {
"type": "git",
"url": "https://github.com/KorAP/Kalamar.git"