accurator/commit
Update id search input field.
author | Chris Dijkshoorn |
---|---|
Thu Apr 21 22:16:00 2016 +0200 | |
committer | Chris Dijkshoorn |
Thu Apr 21 22:16:00 2016 +0200 | |
commit | 84adbef8685ebd793582268e88c1632bbae4f4cc |
tree | 7eadd8371e8e3f7c5a911354c2936d9a2147914d |
parent | ae4525a7b40fa0899b5b01c2da20a5517d5f1ad2 |
Diff style: patch stat
diff --git a/web/js/item.js b/web/js/item.js index 1d696c4..0b36b55 100644 --- a/web/js/item.js +++ b/web/js/item.js @@ -176,7 +176,7 @@ function addButtonEvents(user) { } }); $("#navbarBtnSearch").click(function() { - var query = encodeURIComponent($("#frmSearch").val()); + var query = encodeURIComponent($("#navbarInpSearch").val()); document.location.href = "results.html?query=" + query; }); } diff --git a/web/js/profile.js b/web/js/profile.js index a2e326e..8edd943 100644 --- a/web/js/profile.js +++ b/web/js/profile.js @@ -122,13 +122,11 @@ function addButtonEvents(user) { $("#navbarInpSearch").keypress(function(event) { if (event.which == 13) { var query = encodeURIComponent($("#navbarInpSearch").val()); - document.location.href = "results.html?query=" + query; } }); $("#navbarBtnSearch").click(function() { var query = encodeURIComponent($("#navbarInpSearch").val()); - document.location.href = "results.html?query=" + query; }); $("#profileBtnChangeExpertise").click(function() {