summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-01-09 15:21:55 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-01-09 15:21:55 +0100
commit780fb37758ac16fc8d9eacee99dda8a80c88921f (patch)
tree90922790f05eb12b5c95926e70520c72edd43776 /apps
parent533f0e8e258caef66019377a160e7213fd530f07 (diff)
downloadnextcloud-server-780fb37758ac16fc8d9eacee99dda8a80c88921f.tar.gz
nextcloud-server-780fb37758ac16fc8d9eacee99dda8a80c88921f.zip
allow default click behaviour
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index bb298431e84..a4260c43285 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -87,8 +87,8 @@ $(document).ready(function() {
// Sets the file link behaviour :
$('td.filename a').live('click',function(event) {
- event.preventDefault();
if (event.ctrlKey || event.shiftKey) {
+ event.preventDefault();
if (event.shiftKey) {
var last = $(lastChecked).parent().parent().prevAll().length;
var first = $(this).parent().parent().prevAll().length;
@@ -130,6 +130,7 @@ $(document).ready(function() {
var permissions = $(this).parent().parent().data('permissions');
var action=FileActions.getDefault(mime,type, permissions);
if(action){
+ event.preventDefault();
action(filename);
}
}