Issue 118: Typing a project list into project name search then hitting entire will take you to a 404

master
Nathan Adams 2016-02-14 16:30:42 -06:00 committed by Nathan Adams
parent 57927abcc2
commit b8d6c17308
1 changed files with 3 additions and 2 deletions

View File

@ -2,8 +2,9 @@ $(document).ready(function() {
$("#prjname").keydown(function(ev) {
if(ev.which === 13) {
window.location.replace($('.projectitem :visible').first().attr("href"));
var link = $('.projectitem :visible').first().attr("href");
if(ev.which === 13 && link != undefined) {
window.location.replace(link);
}
});