use "|" as delimiter instead of ";", since "|" is not allowed in file/folder names
This commit is contained in:
parent
211e651d72
commit
3a364639b7
|
@ -5,11 +5,7 @@ OCP\JSON::callCheck();
|
||||||
|
|
||||||
$files = $_POST['files'];
|
$files = $_POST['files'];
|
||||||
$dirlisting = $_POST['dirlisting'];
|
$dirlisting = $_POST['dirlisting'];
|
||||||
$list = explode(';', $files);
|
$list = explode('|', $files);
|
||||||
|
|
||||||
if (!is_array($list)){
|
|
||||||
$list = array($list);
|
|
||||||
}
|
|
||||||
|
|
||||||
$error = array();
|
$error = array();
|
||||||
$success = array();
|
$success = array();
|
||||||
|
|
|
@ -5,7 +5,7 @@ OCP\JSON::callCheck();
|
||||||
|
|
||||||
$files = $_POST['files'];
|
$files = $_POST['files'];
|
||||||
$dirlisting = $_POST['dirlisting'];
|
$dirlisting = $_POST['dirlisting'];
|
||||||
$list = explode(';', $files);
|
$list = explode('|', $files);
|
||||||
|
|
||||||
$error = array();
|
$error = array();
|
||||||
$success = array();
|
$success = array();
|
||||||
|
|
|
@ -93,7 +93,7 @@ $(document).ready(function() {
|
||||||
$('.undelete').click('click',function(event) {
|
$('.undelete').click('click',function(event) {
|
||||||
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'perform restore operation')+'" src="'+ OC.imagePath('core', 'loader.gif') +'"></a>';
|
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'perform restore operation')+'" src="'+ OC.imagePath('core', 'loader.gif') +'"></a>';
|
||||||
var files=getSelectedFiles('file');
|
var files=getSelectedFiles('file');
|
||||||
var fileslist=files.join(';');
|
var fileslist=files.join('|');
|
||||||
var dirlisting=getSelectedFiles('dirlisting')[0];
|
var dirlisting=getSelectedFiles('dirlisting')[0];
|
||||||
|
|
||||||
for (var i in files) {
|
for (var i in files) {
|
||||||
|
@ -118,7 +118,7 @@ $(document).ready(function() {
|
||||||
console.log("delete selected");
|
console.log("delete selected");
|
||||||
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'Delete permanently')+'" src="'+ OC.imagePath('core', 'loading.gif') +'"></a>';
|
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'Delete permanently')+'" src="'+ OC.imagePath('core', 'loading.gif') +'"></a>';
|
||||||
var files=getSelectedFiles('file');
|
var files=getSelectedFiles('file');
|
||||||
var fileslist=files.join(';');
|
var fileslist=files.join('|');
|
||||||
var dirlisting=getSelectedFiles('dirlisting')[0];
|
var dirlisting=getSelectedFiles('dirlisting')[0];
|
||||||
|
|
||||||
for (var i in files) {
|
for (var i in files) {
|
||||||
|
|
Loading…
Reference in New Issue