Created
April 6, 2017 22:11
-
-
Save mfifth/ef0dd0c3de1a5985d293d01144d04221 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $("#csv_form").on("success", function() { | |
| console.log("what the fuck"); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dropzone.options.csv_form = { | |
| init: function () { | |
| this.on("complete", function (file) { | |
| var data = { | |
| csv_limit: 100, | |
| csv_file_path: file | |
| }; | |
| $.ajax({ | |
| type: "post", | |
| data: data, | |
| url: 'https://seedcms.fwd.wf/csv_count/calculate', | |
| cache: false, | |
| dataType: "json", | |
| success: function(data) { | |
| console.log(data) | |
| console.log("So this worked.") | |
| } | |
| }); | |
| }); | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function() { | |
| Dropzone.options.csv_form = { | |
| success: function(file, response){ | |
| alert(response); | |
| } | |
| }; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment