Added rewrite capabilities and separated menu
diff --git a/public/js/src/hint.js b/public/js/src/hint.js
index 4f5a8b5..0b696d1 100644
--- a/public/js/src/hint.js
+++ b/public/js/src/hint.js
@@ -564,6 +564,9 @@
this.item(this._list[this._list.length - 1]).noMore(bool);
},
_initList : function () {
+
+console.log("..." + this._items.length);
+
if (this._list === undefined)
this._list = [];
else if (this._list.length != 0) {
@@ -573,7 +576,7 @@
this._offset = 0;
- if (this.prefix.length <= 0) {
+ if (this.prefix().length <= 0) {
for (var i = 0; i < this._items.length; i++)
this._list.push(i);
return true;