Skip to content

Commit

Permalink
Forgot the Traves not click function
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo Perez Perez committed Apr 11, 2015
1 parent b297cfd commit aae4daa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions addon/components/crud-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ export default Ember.Component.extend({
link.setAttribute("href", encodedUri);
link.setAttribute("download", "table.json");
this.set('dlf', link);
link.click();

if(link.click){link.click();}

},
toTSV: function () {

Expand Down Expand Up @@ -195,7 +197,7 @@ export default Ember.Component.extend({
link.setAttribute("href", encodedUri);
link.setAttribute("download", "table.tsv");
this.set('dlf', link);
link.click();
if(link.click){link.click();}
},
toCSV: function () {

Expand Down Expand Up @@ -223,7 +225,7 @@ export default Ember.Component.extend({
link.setAttribute("href", encodedUri);
link.setAttribute("download", "table.csv");
this.set('dlf', link);
link.click();
if(link.click){link.click();}
},
goto: function (page) {
var that = this;
Expand Down

0 comments on commit aae4daa

Please sign in to comment.