Drag&drop fixes

parent 2e91a552
......@@ -175,13 +175,13 @@
.dropzone {
min-height: 150px;
border: 2px solid rgba(0, 0, 0, 0.3);
background: white;
padding: 50px 10px 10px 10px; }
/* border: 2px solid rgba(0, 0, 0, 0.3);
background: white;*/
padding: 10px 10px 10px 10px; }
.dropzone.dz-clickable {
cursor: pointer; }
.dropzone.dz-clickable * {
cursor: default; }
/*.dropzone.dz-clickable * {
cursor: default; }*/
.dropzone.dz-clickable .dz-message, .dropzone.dz-clickable .dz-message * {
cursor: pointer; }
.dropzone.dz-started .dz-message {
......@@ -376,7 +376,7 @@
background: linear-gradient(to bottom, #be2626, #a92222);
padding: 0.5em 1.2em;
color: white; }
.dropzone .dz-preview .dz-error-message:after {
.dropzone .dz-preview .dz-error-message:after {
content: '';
position: absolute;
top: -6px;
......@@ -386,15 +386,19 @@
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid #be2626; }
.dropzone .file-upload{
.dropzone .file-upload{
margin-bottom: 15px;
}
.dropzone {
.dropzone {
z-index: 100;
}
.file_upload_bt, .file_upload_bt_cs {
bottom: 140px;
.file_upload_bt, .file_upload_bt_cs {
bottom: -80px;
}
.dz-default dz-message{
.file_upload, .file_upload_cs, .file_upload_bt_cs{
cursor: pointer !important;
z-index: 200;
}
.dz-default.dz-message{
display:none;
}
\ No newline at end of file
}
......@@ -9,15 +9,13 @@ $(document).ready(function() {
maxFiles: 4,
addRemoveLinks: true,
dictRemoveFile: 'Удалить',
/*accept: function(file, done) {
$('#file_name').val(file.name);
done();
},*/
success: function(first, response)
{
$('#files-zone').append('<input type="hidden" name="Bid[file][]" value="'+response.filename+'" />');
$('.file_drop').hide();
$('.file_drop_cs').hide();
}
$('.file_upload_bt_cs').hide();
$('.file_upload_bt').hide();
},
};
});
\ No newline at end of file
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