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}} - +