diff --git a/nbproject/project.properties b/nbproject/project.properties index d37ef95..3d9b81a 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -1,3 +1,4 @@ +auxiliary.org-netbeans-modules-php-smarty.smarty-framework=true include.path=${php.global.include.path} php.version=PHP_54 source.encoding=UTF-8 diff --git a/neopolimatrix/page/default_page/js/default_page.js b/neopolimatrix/page/default_page/js/default_page.js index 3ba4be3..b205370 100644 --- a/neopolimatrix/page/default_page/js/default_page.js +++ b/neopolimatrix/page/default_page/js/default_page.js @@ -15,7 +15,13 @@ function impressum(){ function search(){ $("#nav_search_btn").click(function(){ $('#contentframe').load('./?page=search¶m='+$('#nav_search').val()); - }); + }); + $(document).keypress(function(e) { + var hasFocus = $('#nav_search').is(':focus'); + if(e.which === 13 && hasFocus) { + $('#contentframe').load('./?page=search¶m='+$('#nav_search').val()); + } +}); } function tabs(){