add drag and drop file uploads w/async processing
[skip ci]
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
Danbooru.Upload.initialize_submit = function() {
|
||||
$("#form").submit(function(e) {
|
||||
var error_messages = [];
|
||||
if (($("#upload_file").val() === "") && ($("#upload_source").val() === "")) {
|
||||
if (($("#upload_file").val() === "") && ($("#upload_source").val() === "") && $("#upload_md5_confirmation").val() === "") {
|
||||
error_messages.push("Must choose file or specify source");
|
||||
}
|
||||
if (!$("#upload_rating_s").prop("checked") && !$("#upload_rating_q").prop("checked") && !$("#upload_rating_e").prop("checked") &&
|
||||
|
||||
@@ -34,6 +34,37 @@ div#c-uploads {
|
||||
div.field_with_errors {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#filedropzone {
|
||||
border: 4px dashed #DDD;
|
||||
padding: 10px;
|
||||
max-width: 700px;
|
||||
min-height: 50px;
|
||||
|
||||
&.error {
|
||||
background-color: #f2dede;
|
||||
}
|
||||
|
||||
&.success {
|
||||
background-color: #dff0d8;
|
||||
}
|
||||
}
|
||||
|
||||
.dz-preview {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.dz-progress {
|
||||
height: 20px;
|
||||
width: 300px;
|
||||
border: 1px solid #CCC;
|
||||
|
||||
.dz-upload {
|
||||
background-color: #F5F5FF;
|
||||
display: block;
|
||||
height: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div#a-index {
|
||||
|
||||
Reference in New Issue
Block a user