Last active
March 17, 2017 15:45
-
-
Save pcote/7d593aa4a015c91440eb6dabbc528f41 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
var refreshFilenameList = function(data){ | |
// Standard handlebars template stuff. | |
var templateText = $("#tableTemplate").html(); | |
var template = Handlebars.compile(templateText); | |
var renderedText = template(data); | |
var renderedDom = $(renderedText); | |
$("#tablearea").empty(); | |
$("#tablearea").append(renderedDom); | |
}; | |
var fileUploadSuccess = function(data){ | |
var url = "/filenames"; | |
var promise = $.get(url); | |
promise.then(refreshFilenameList); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment