Fixed click-bug in hint-menu
diff --git a/public/js/hint.js b/public/js/hint.js
index afa04e1..ddf80b1 100644
--- a/public/js/hint.js
+++ b/public/js/hint.js
@@ -531,6 +531,7 @@
     this._element = document.createElement("ul");
 
     // Add onclick event
+    // Todo: Probably better do this for each <li />
     this._element.addEventListener("click", chooseHint, false);
 
     this._element.style.opacity = 0;
@@ -762,16 +763,16 @@
 };
 
 function chooseHint (e) {
-/*
   var element = e.target;
   while (element.nodeName == "STRONG" || element.nodeName == "SPAN") {
     element = element.parentNode;
   };
   if (element === undefined || element.nodeName != "LI")
     return;
-*/
 
-  var action = this.getAttribute('data-action');
+  // console.log(this.getAttribute('data-action'));
+
+  var action = element.getAttribute('data-action');
   hint.insertText(action);
   var menu = hint.menu();
   menu.hide();