From f8923636134ca03df293253c4d9e3376234830c2 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Fri, 19 Dec 2014 22:53:27 -0600 Subject: [PATCH] Changing behavior of project search textbox to navigate to first displayed project --- indefero/src/IDF/templates/idf/main-menu.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/indefero/src/IDF/templates/idf/main-menu.html b/indefero/src/IDF/templates/idf/main-menu.html index feb84b6..0cc1b6e 100644 --- a/indefero/src/IDF/templates/idf/main-menu.html +++ b/indefero/src/IDF/templates/idf/main-menu.html @@ -33,12 +33,7 @@ $(document).ready(function() { $("#prjname").keydown(function(ev) { if(ev.which === 13) { - var elements = $('.projectitem :visible'); - var count = elements.size(); - if (count > 0 && (count / 2) == 1) - { - window.location.replace($('.projectitem :visible').attr("href")); - } + window.location.replace($('.projectitem :visible').first().attr("href")); } });