Commit bb52701e authored by Nicolas Widart's avatar Nicolas Widart

Preparing the insert row

parent 48557d7a
......@@ -74,11 +74,18 @@
<script>
$( document ).ready(function() {
Dropzone.autoDiscover = false;
$(".dropzone").dropzone({
url: $(this).attr('action')
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 elem = $(tableRow).css('display', 'none');
$('table tbody').prepend(elem);
elem.fadeIn();
});
var tableRow = '<tr><td>23/09/2140</td><td>filename</td><td>500</td><td>500</td><td>action</td></tr>'
$('table>tbody').append(tableRow);
});
</script>
<?php $locale = App::getLocale(); ?>
......
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