Issue 118: Typing a project list into project name search then hitting entire will take you to a 404
This commit is contained in:
parent
57927abcc2
commit
b8d6c17308
@ -2,8 +2,9 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
|
|
||||||
$("#prjname").keydown(function(ev) {
|
$("#prjname").keydown(function(ev) {
|
||||||
if(ev.which === 13) {
|
var link = $('.projectitem :visible').first().attr("href");
|
||||||
window.location.replace($('.projectitem :visible').first().attr("href"));
|
if(ev.which === 13 && link != undefined) {
|
||||||
|
window.location.replace(link);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user