Attempt to improve prefix handling in hint
diff --git a/dev/js/src/hint/alert.js b/dev/js/src/hint/alert.js
index a5b43de..f34fde8 100644
--- a/dev/js/src/hint/alert.js
+++ b/dev/js/src/hint/alert.js
@@ -8,6 +8,7 @@
return Object.create(this)._init(msg);
},
_init : function (msg) {
+ this._type = 'alert';
this.active = false;
this._element = document.createElement('div');
this._element.style.opacity = 0;
@@ -20,7 +21,7 @@
this._element.style.opacity = 1;
},
- unshow : function () {
+ hide : function () {
if (!this.active)
return false;
this._element.style.opacity = 0;
diff --git a/dev/js/src/hint/item.js b/dev/js/src/hint/item.js
index 3747a72..cfea816 100644
--- a/dev/js/src/hint/item.js
+++ b/dev/js/src/hint/item.js
@@ -22,8 +22,6 @@
this._name = params[0];
this._action = params[1];
this._lcField = ' ' + this._name.toLowerCase();
-
- console.log('!!!!');
if (params.length > 2) {
this._desc = params[2];
@@ -50,7 +48,7 @@
onclick : function (e) {
var m = this.menu();
var h = m.hint();
- m.hide();
+ // m.hide();
// Update input field
var input = h.inputField();
@@ -58,6 +56,7 @@
e.halt();
+ // show alt
h.show(true);
},