From 9863e4c1adf05c532a877b1458cafd424e03c93f Mon Sep 17 00:00:00 2001 From: Marco Dickert Date: Wed, 28 Mar 2018 10:16:28 +0200 Subject: [PATCH] Fix download function when a specific api url is given. --- build/libifm.php | 4 ++-- ifm.php | 4 ++-- src/ifm.js | 2 +- src/templates/filetable.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/libifm.php b/build/libifm.php index 51d655f..75e40ab 100644 --- a/build/libifm.php +++ b/build/libifm.php @@ -278,7 +278,7 @@ f00bar; {{#config.download}} -
+ @@ -1631,7 +1631,7 @@ function IFM( params ) { // build new tbody and replace the old one with the new - var newTBody = Mustache.render( self.templates.filetable, { items: data, config: self.config, i18n: self.i18n } ); + var newTBody = Mustache.render( self.templates.filetable, { items: data, config: self.config, i18n: self.i18n, api: self.api } ); var filetable = document.getElementById( 'filetable' ); filetable.tBodies[0].remove(); filetable.append( document.createElement( 'tbody' ) ); diff --git a/ifm.php b/ifm.php index 5a6417c..aba8f35 100644 --- a/ifm.php +++ b/ifm.php @@ -278,7 +278,7 @@ f00bar; {{#config.download}} - + @@ -1631,7 +1631,7 @@ function IFM( params ) { // build new tbody and replace the old one with the new - var newTBody = Mustache.render( self.templates.filetable, { items: data, config: self.config, i18n: self.i18n } ); + var newTBody = Mustache.render( self.templates.filetable, { items: data, config: self.config, i18n: self.i18n, api: self.api } ); var filetable = document.getElementById( 'filetable' ); filetable.tBodies[0].remove(); filetable.append( document.createElement( 'tbody' ) ); diff --git a/src/ifm.js b/src/ifm.js index acec388..7545edc 100644 --- a/src/ifm.js +++ b/src/ifm.js @@ -192,7 +192,7 @@ function IFM( params ) { // build new tbody and replace the old one with the new - var newTBody = Mustache.render( self.templates.filetable, { items: data, config: self.config, i18n: self.i18n } ); + var newTBody = Mustache.render( self.templates.filetable, { items: data, config: self.config, i18n: self.i18n, api: self.api } ); var filetable = document.getElementById( 'filetable' ); filetable.tBodies[0].remove(); filetable.append( document.createElement( 'tbody' ) ); diff --git a/src/templates/filetable.html b/src/templates/filetable.html index 140e50f..82c7150 100644 --- a/src/templates/filetable.html +++ b/src/templates/filetable.html @@ -14,7 +14,7 @@ {{#config.download}} - +