Commit 1c6aedb9 authored by JoyJ's avatar JoyJ

finish tag search

parent 048e28da
...@@ -93,8 +93,7 @@ ...@@ -93,8 +93,7 @@
} }
function onSearch(e) { function onSearch(e) {
console.log('triggered search'); searchTag("tag=" + encodeURIComponent(e.detail.text));
console.log(e.detail.text);
} }
</script> </script>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
function searchByTag(e) { function searchByTag(e) {
console.log(e); console.log(e);
raiseEvent('search', { raiseEvent('search', {
text: e.target text: e.target.innerHTML
}); });
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment