diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-01-02 18:08:20 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-01-02 18:08:20 +0000 |
commit | ebe3ae58cffa8c16ef2b1b74c5b7a9228a5495ff (patch) | |
tree | c5db4cbd6d27483c03e295d273dbab21bc6eda03 /files | |
parent | 0730077840a82a67a491780257089dfe7c7f64e2 (diff) | |
download | nextcloud-server-ebe3ae58cffa8c16ef2b1b74c5b7a9228a5495ff.tar.gz nextcloud-server-ebe3ae58cffa8c16ef2b1b74c5b7a9228a5495ff.zip |
removed data-read and fixed droppable logic
Diffstat (limited to 'files')
-rw-r--r-- | files/js/files.js | 2 | ||||
-rw-r--r-- | files/templates/part.list.php | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/files/js/files.js b/files/js/files.js index 6044541d4aa..7c04245c223 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -12,7 +12,7 @@ $(document).ready(function() { //drag/drop of files $('#fileList tr td.filename').draggable(dragOptions); - $('#fileList tr[data-type="dir"][data-read="false"][data-write="false"] td.filename').droppable(folderDropOptions); + $('#fileList tr[data-type="dir"][data-write="true"] td.filename').droppable(folderDropOptions); $('div.crumb').droppable(crumbDropOptions); $('ul#apps>li:first-child').data('dir',''); $('ul#apps>li:first-child').droppable(crumbDropOptions); diff --git a/files/templates/part.list.php b/files/templates/part.list.php index 81ba24dac9f..a364862119d 100644 --- a/files/templates/part.list.php +++ b/files/templates/part.list.php @@ -1,5 +1,4 @@ <?php foreach($_['files'] as $file): - $read = ($file['readable']) ? 'true' : 'false'; $write = ($file['writeable']) ? 'true' : 'false'; $simple_file_size = simple_file_size($file['size']); $simple_size_color = intval(200-$file['size']/(1024*1024)*2); // the bigger the file, the darker the shade of grey; megabytes*2 @@ -11,7 +10,7 @@ $name = str_replace('%2F','/', $name); $directory = str_replace('+','%20',urlencode($file['directory'])); $directory = str_replace('%2F','/', $directory); ?> - <tr data-file="<?php echo $name;?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mime']?>" data-size='<?php echo $file['size'];?>' data-read='<?php echo $read;?>' data-write='<?php echo $write;?>'> + <tr data-file="<?php echo $name;?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mime']?>" data-size='<?php echo $file['size'];?>' data-write='<?php echo $write;?>'> <td class="filename svg" style="background-image:url(<?php if($file['type'] == 'dir') echo mimetype_icon('dir'); else echo mimetype_icon($file['mime']); ?>)"> <?php if(!isset($_['readonly']) || !$_['readonly']) { ?><input type="checkbox" /><?php } ?> <a class="name" href="<?php if($file['type'] == 'dir') echo $_['baseURL'].$directory.'/'.$name; else echo $_['downloadURL'].$directory.'/'.$name; ?>" title=""> |