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:
@@ -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",
|
||||
|
3
ifm.php
3
ifm.php
@@ -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",
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user