neopolimatrix search on enter

This commit is contained in:
Ulf Gebhardt 2015-02-20 04:53:33 +01:00
parent 71f6f2d32a
commit 87da3bd1c3
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -15,7 +15,13 @@ function impressum(){
function search(){
$("#nav_search_btn").click(function(){
$('#contentframe').load('./?page=search&param='+$('#nav_search').val());
});
});
$(document).keypress(function(e) {
var hasFocus = $('#nav_search').is(':focus');
if(e.which === 13 && hasFocus) {
$('#contentframe').load('./?page=search&param='+$('#nav_search').val());
}
});
}
function tabs(){