li %!s(int64=7) %!d(string=hace) años
padre
commit
63cd417a2f
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      js/common.js

+ 5 - 1
js/common.js

@ -53,7 +53,11 @@ $("#searchContent").keydown(function(e) {
53 53
$("#hsearchContent").keydown(function(e) {
54 54
	if(e.which == 13) {
55 55
		var searchContent = $("#hsearchContent").val();
56
		console.log(searchContent);
56
		if($(this).siblings()[0].id=="searchh") {
57
			alert(1)
58
		}else{
59
			alert(2)
60
		}
57 61
		location.href = "searchNew.html?searchContent=" + encodeURI(searchContent);
58 62
	}
59 63
})