From 0f5f1c98cae1becdbd303a85005fd5381eefe1b0 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 25 Jul 2016 01:46:40 -0700 Subject: revert cloud acl selector (branched so as to continue development) --- view/js/mod_cloud.js | 4 ++-- view/tpl/cloud_actionspanel.tpl | 24 ++++++------------------ 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/view/js/mod_cloud.js b/view/js/mod_cloud.js index 8f08c7fe9..71e916446 100644 --- a/view/js/mod_cloud.js +++ b/view/js/mod_cloud.js @@ -90,9 +90,9 @@ function DragDropUploadFile(file, idx) { } }); // POST to the entire cloud path - xhr.open('post', 'file_upload', true); + xhr.open('post', window.location.pathname, true); var data = new FormData(document.getElementById("ajax-upload-files")); - data.append('userfile', file); + data.append('file', file); xhr.send(data); } diff --git a/view/tpl/cloud_actionspanel.tpl b/view/tpl/cloud_actionspanel.tpl index 913522c87..fba457fdc 100644 --- a/view/tpl/cloud_actionspanel.tpl +++ b/view/tpl/cloud_actionspanel.tpl @@ -2,37 +2,25 @@
- +
{{if $quota.limit || $quota.used}}{{/if}} -
- - + +
-

{{$dragdroptext}}
+

{{$dragdroptext}}
- {{$aclselect}}
- -
-
- {{if $lockstate}} - - {{/if}} - -
-
+ +

- -- cgit v1.2.3