mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-13 15:26:32 +08:00
Small code fixies [SCI-1747]
This commit is contained in:
parent
fe8b7d26c1
commit
e35031dd9a
2 changed files with 2 additions and 1 deletions
|
@ -594,7 +594,7 @@
|
||||||
setupAssetsLoading();
|
setupAssetsLoading();
|
||||||
},
|
},
|
||||||
error: function(xhr) {
|
error: function(xhr) {
|
||||||
if (xhr.responseJSON['assets.file'] != null) {
|
if (xhr.responseJSON['assets.file']) {
|
||||||
$('#new-step-assets-group').addClass('has-error');
|
$('#new-step-assets-group').addClass('has-error');
|
||||||
$('#new-step-assets-tab').addClass('has-error');
|
$('#new-step-assets-tab').addClass('has-error');
|
||||||
$.each(xhr.responseJSON['assets.file'], function(_, value) {
|
$.each(xhr.responseJSON['assets.file'], function(_, value) {
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
var name = 'step[assets_attributes][' + index + '][file]';
|
var name = 'step[assets_attributes][' + index + '][file]';
|
||||||
fd.append(name, droppedFiles[i]);
|
fd.append(name, droppedFiles[i]);
|
||||||
}
|
}
|
||||||
|
droppedFiles = [];
|
||||||
filesValid = true;
|
filesValid = true;
|
||||||
totalSize = 0;
|
totalSize = 0;
|
||||||
_dragNdropAssetsOff();
|
_dragNdropAssetsOff();
|
||||||
|
|
Loading…
Add table
Reference in a new issue