diff options
author | kondou <kondou@ts.unde.re> | 2013-04-06 17:22:55 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-04-06 17:22:55 +0200 |
commit | d556e7fbc0f32a57ce3efc4fbb32b003b7e67b2d (patch) | |
tree | f08fbfeadf72fb9bc747fc3cfcea21f3a3100aa6 /core/js | |
parent | 3e185911f1d6f397d95f96419e5b65c1c10390ea (diff) | |
download | nextcloud-server-d556e7fbc0f32a57ce3efc4fbb32b003b7e67b2d.tar.gz nextcloud-server-d556e7fbc0f32a57ce3efc4fbb32b003b7e67b2d.zip |
Make files selectable again.
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/oc-dialogs.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index f929eb87dc5..1acc96ac164 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -151,10 +151,10 @@ var OCdialogs = { $(dialog_id + ' #dirtree').focus().change( {dcid: dialog_id}, OCdialogs.handleTreeListSelect ); $(dialog_id + ' #dirup').click( {dcid: dialog_id}, OCdialogs.filepickerDirUp ); - $(dialog_id + ' #filelist').click('[data="file"]', function() { + $(dialog_id + ' #filelist').click('[data="dir"]', function() { OCdialogs.handlePickerClick(this, $(this).data('entryname'), $(this).data('dcid')); }); - $(dialog_id + ' #filelist').on('click', '[data="dir"]', function() { + $(dialog_id + ' #filelist').on('click', '[data="file"]', function() { OCdialogs.handlePickerClick(this, $(this).data('entryname'), $(this).data('dcid')); }); @@ -174,7 +174,7 @@ var OCdialogs = { if (multiselect === true) { datapath = []; $(dialog_id + ' .filepicker_element_selected .filename').each(function(index, element) { - datapath.push( $(dialog_id).data('path') + $(elem).text() ); + datapath.push( $(dialog_id).data('path') + $(element).text() ); }); } else { var datapath = $(dialog_id).data('path'); |