Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

Commit

Permalink
Parse the file blob attributes rather than calling .data(); this ensu…
Browse files Browse the repository at this point in the history
…res that we get the correct object in the event that the button is updated by new table data between downloads
  • Loading branch information
Daniel Wilson committed Jan 10, 2017
1 parent 1121f03 commit 5d2d8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/js/tableexport.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
$("button[data-fileblob]")
.off("click")
.on("click", function () {
var object = $(this).data("fileblob"),
var object = JSON.parse($(this).attr('data-fileblob')),
data = object.data,
fileName = object.fileName,
mimeType = object.mimeType,
Expand Down

0 comments on commit 5d2d8f4

Please sign in to comment.