Fix search don't open in a new page

This commit is contained in:
2024-11-14 09:25:15 +01:00
parent 4a70dd42ce
commit 51027b712f

View File

@@ -358,17 +358,11 @@ function closeSugBox(src)
$("#sugs").html("").css({"display": "none"});
}
function applySugResult()
function applySugResult()
{
if ($("#sugs .active").length > 0) {
$("#i").val($("#sugs .active a").html());
var url = $("#sugs .active a").attr("href");
window.open(url, '_blank');
closeSugBox(false);
}
}