summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-08-27 16:36:15 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-08-27 16:36:15 -0400
commit0b17a542cb0a7b0471a334a219649c28e482b133 (patch)
treea386b4576cf7bdc993d8618ac7e95c7b0db56142 /core
parent464c75e4b258650fdab5b0b2343a4ef07a63a085 (diff)
downloadnextcloud-server-0b17a542cb0a7b0471a334a219649c28e482b133.tar.gz
nextcloud-server-0b17a542cb0a7b0471a334a219649c28e482b133.zip
Fix searchbox enter action
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 770ce4ea695..a72573e326f 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -257,7 +257,7 @@ $(document).ready(function(){
if(event.keyCode==13){//enter
if(OC.search.currentResult>-1){
var result=$('#searchresults tr.result a')[OC.search.currentResult];
- $(result).click();
+ window.location = $(result).attr('href');
}
}else if(event.keyCode==38){//up
if(OC.search.currentResult>0){