accurator/commit

Update id search input field.

authorChris Dijkshoorn
Thu Apr 21 22:16:00 2016 +0200
committerChris Dijkshoorn
Thu Apr 21 22:16:00 2016 +0200
commit84adbef8685ebd793582268e88c1632bbae4f4cc
tree7eadd8371e8e3f7c5a911354c2936d9a2147914d
parentae4525a7b40fa0899b5b01c2da20a5517d5f1ad2
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() {