Commit 1463c07c authored by Nicolas Widart's avatar Nicolas Widart

Display a new row from the just created file

parent 13dbc942
......@@ -74,14 +74,13 @@
<script>
$( document ).ready(function() {
Dropzone.autoDiscover = false;
var tableRow = '<tr><td>23/09/2140</td><td>filename</td><td>500</td><td>500</td><td>action</td></tr>';
var myDropzone = new Dropzone(".dropzone", {
url: $(this).attr('action'),
autoProcessQueue: true
});
myDropzone.on("success", function(file, http) {
//console.log(http);
var tableRow = '<tr><td>' + http.created_at + '</td><td>'+http.filename+'</td><td></td><td></td><td>action</td></tr>';
var elem = $(tableRow).css('display', 'none');
$('table tbody').prepend(elem);
elem.fadeIn();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment