Improve select menu and integrate for query language choosing
diff --git a/dev/js/src/menu.js b/dev/js/src/menu.js
index 69107d0..4d9df49 100644
--- a/dev/js/src/menu.js
+++ b/dev/js/src/menu.js
@@ -78,7 +78,6 @@
// Create the element
var el = document.createElement("ul");
with (el) {
- style.opacity = 0;
style.outline = 0;
setAttribute('tabindex', 0);
classList.add('menu', 'roll');
@@ -391,14 +390,13 @@
this._prefix.active(true);
// finally show the element
- this._element.style.opacity = 1;
+ this._element.classList.add('visible');
return true;
};
var offset = 0;
-
// Set a chosen value to active and move the viewport
if (arguments.length === 1) {
@@ -443,10 +441,11 @@
this._prefix.active(false);
// finally show the element
- this._element.style.opacity = 1;
+ this._element.classList.add('visible');
// Add classes for rolling menus
this._boundary(true);
+
return true;
},
@@ -456,9 +455,10 @@
*/
hide : function () {
this.removeItems();
- this._element.style.opacity = 0;
this._prefix.clear();
this.onHide();
+ this._element.classList.remove('visible');
+
/* this._element.blur(); */
},