summaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-02-25 11:14:06 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-02-25 11:14:06 +0100
commit632ca9f06d2247061b7f03ce9bfcd0402bd92441 (patch)
treebd8655da7d7b987c492f02b900bd04d2bc442324 /apps/files/js/files.js
parentdf76e0d1c33fc1fa9610b98a7aee41941c09eb3f (diff)
parent9ee5069f2a1d76c899eeef6cec0f06387764fabd (diff)
downloadnextcloud-server-632ca9f06d2247061b7f03ce9bfcd0402bd92441.tar.gz
nextcloud-server-632ca9f06d2247061b7f03ce9bfcd0402bd92441.zip
Merge branch 'master' into update-expire-function
Conflicts: apps/files_trashbin/lib/trash.php
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 8327460cca6..6801fb59910 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -114,7 +114,7 @@ $(document).ready(function() {
$(this).parent().children('#file_upload_start').trigger('click');
return false;
});
-
+
// Show trash bin
$('#trash a').live('click', function() {
window.location=OC.filePath('files_trashbin', '', 'index.php');
@@ -817,26 +817,26 @@ var createDragShadow = function(event){
//select dragged file
$(event.target).parents('tr').find('td input:first').prop('checked',true);
}
-
+
var selectedFiles = getSelectedFiles();
-
+
if (!isDragSelected && selectedFiles.length == 1) {
//revert the selection
$(event.target).parents('tr').find('td input:first').prop('checked',false);
}
-
+
//also update class when we dragged more than one file
if (selectedFiles.length > 1) {
$(event.target).parents('tr').addClass('selected');
}
-
+
// build dragshadow
var dragshadow = $('<table class="dragshadow"></table>');
var tbody = $('<tbody></tbody>');
dragshadow.append(tbody);
-
+
var dir=$('#dir').val();
-
+
$(selectedFiles).each(function(i,elem){
var newtr = $('<tr data-dir="'+dir+'" data-filename="'+elem.name+'">'
+'<td class="filename">'+elem.name+'</td><td class="size">'+humanFileSize(elem.size)+'</td>'
@@ -850,7 +850,7 @@ var createDragShadow = function(event){
});
}
});
-
+
return dragshadow;
}
@@ -870,9 +870,9 @@ var folderDropOptions={
if ($(event.target).parents('tr').find('td input:first').prop('checked') === true) {
return false;
}
-
+
var target=$.trim($(this).find('.nametext').text());
-
+
var files = ui.helper.find('tr');
$(files).each(function(i,row){
var dir = $(row).data('dir');