Merge pull request #1135 from owncloud/allow_default_click_behaviour

allow default click behaviour
remotes/origin/stable5
Lukas Reschke 14 years ago
commit 9eb16e06f7
  1. 3
      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);
}
}

Loading…
Cancel
Save