1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-10 01:56:30 +02:00

Fix bug: Creating an archive fails if only one element is selected

This commit is contained in:
Marco Dickert
2018-05-25 16:08:58 +02:00
parent c4e6f6d527
commit 6c5ac35277
3 changed files with 9 additions and 0 deletions

View File

@@ -2607,6 +2607,9 @@ function IFM( params ) {
var id = self.generateGuid();
self.task_add( { id: id, name: self.i18n.create_archive+" "+archivename } );
if( ! Array.isArray( items ) )
items = [items];
$.ajax({
url: self.api,
type: "POST",

View File

@@ -2607,6 +2607,9 @@ function IFM( params ) {
var id = self.generateGuid();
self.task_add( { id: id, name: self.i18n.create_archive+" "+archivename } );
if( ! Array.isArray( items ) )
items = [items];
$.ajax({
url: self.api,
type: "POST",

View File

@@ -1166,6 +1166,9 @@ function IFM( params ) {
var id = self.generateGuid();
self.task_add( { id: id, name: self.i18n.create_archive+" "+archivename } );
if( ! Array.isArray( items ) )
items = [items];
$.ajax({
url: self.api,
type: "POST",