summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2012-08-31 00:13:02 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-08-31 00:13:02 +0200
commit26ef01241887d74d7afc1854580eae659601da14 (patch)
treef5544d86d8470c6d6b21721252ab8ae9fc3bab72 /apps
parent58b1e841f11559f462ce803a500105f0b64f6e36 (diff)
downloadnextcloud-server-26ef01241887d74d7afc1854580eae659601da14.tar.gz
nextcloud-server-26ef01241887d74d7afc1854580eae659601da14.zip
use permissions to quickfix drag selections
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index b57e75c9004..5ecc5bc22cb 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -40,8 +40,11 @@ $(document).ready(function() {
$('#file_action_panel').attr('activeAction', false);
//drag/drop of files
- $('#fileList tr[data-write="true"] td.filename').draggable(dragOptions);
- $('#fileList tr[data-type="dir"][data-write="true"] td.filename').droppable(folderDropOptions);
+ //TODO if we express permisions as "1 2 4 8 16" we can select create with [data-permissions~="4"]
+ $('#fileList tr[data-permissions="11"] td.filename').draggable(dragOptions);
+ $('#fileList tr[data-permissions="27"] td.filename').draggable(dragOptions);
+ $('#fileList tr[data-type="dir"][data-permissions="15"] td.filename').droppable(folderDropOptions);
+ $('#fileList tr[data-type="dir"][data-permissions="31"] td.filename').droppable(folderDropOptions);
$('div.crumb:not(.last)').droppable(crumbDropOptions);
$('ul#apps>li:first-child').data('dir','');
if($('div.crumb').length){