summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-04-06 17:22:55 +0200
committerkondou <kondou@ts.unde.re>2013-04-06 17:22:55 +0200
commitd556e7fbc0f32a57ce3efc4fbb32b003b7e67b2d (patch)
treef08fbfeadf72fb9bc747fc3cfcea21f3a3100aa6 /core/js
parent3e185911f1d6f397d95f96419e5b65c1c10390ea (diff)
downloadnextcloud-server-d556e7fbc0f32a57ce3efc4fbb32b003b7e67b2d.tar.gz
nextcloud-server-d556e7fbc0f32a57ce3efc4fbb32b003b7e67b2d.zip
Make files selectable again.
Diffstat (limited to 'core/js')
-rw-r--r--core/js/oc-dialogs.js6
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');