Commit 4f65e6d2 authored by Nicolas Widart's avatar Nicolas Widart

Updating dependencies

parent 5af96601
This diff is collapsed.
$( document ).ready(function() {
Dropzone.autoDiscover = false;
var myDropzone = new Dropzone(".dropzone", {
url: '/api/file',
autoProcessQueue: true,
maxFilesize: maxFilesize,
acceptedFiles : acceptedFiles
});
myDropzone.on("success", function(file, http) {
window.setTimeout(function(){
location.reload();
}, 1000);
});
myDropzone.on("sending", function(file, fromData) {
if ($('.alert-danger').length > 0) {
$('.alert-danger').remove();
}
});
myDropzone.on("error", function(file, errorMessage) {
var html = '<div class="alert alert-danger" role="alert">' + errorMessage.error + '</div>';
$('.col-md-12').first().prepend(html);
setTimeout(function() {
myDropzone.removeFile(file);
}, 2000);
});
});
...@@ -20,7 +20,7 @@ footer.main-footer p.text-muted { ...@@ -20,7 +20,7 @@ footer.main-footer p.text-muted {
margin-top: -30px; margin-top: -30px;
} }
.skin-blue .sidebar-menu .append:hover, .skin-blue .sidebar-menu .append:hover,
.skin-blue .sidebar-menu > li.active > a:last-child { .skin-blue .sidebar-menu > li.active > a.append {
color: #fff; color: #fff;
background: none; background: none;
border: 0; border: 0;
......
$(document).ready(function () {
$("form").sisyphus();
});
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