mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-23 15:24:57 +08:00
Fix error message for file upload limit on steps [SCI-4645]
This commit is contained in:
parent
e9a05d2e3d
commit
bc1ee1bd8d
1 changed files with 3 additions and 5 deletions
|
@ -273,11 +273,9 @@
|
||||||
if (totalSize > fileMaxSize) {
|
if (totalSize > fileMaxSize) {
|
||||||
filesValid = false;
|
filesValid = false;
|
||||||
disableSubmitButton();
|
disableSubmitButton();
|
||||||
$.each($('.panel-step-attachment-new'), function() {
|
$.each($('.attachment-placeholder.new'), function() {
|
||||||
if (!$(this).find('p').hasClass('dnd-total-error')) {
|
if (!$(this).find('p').hasClass('dnd-error')) {
|
||||||
$(this)
|
$(this).append("<p class='dnd-total-error'>" + I18n.t('general.file.total_size', { size: fileMaxSizeMb }) + '</p>');
|
||||||
.find('.panel-body')
|
|
||||||
.append("<p class='dnd-total-error'>" + I18n.t('general.file.total_size', { size: fileMaxSizeMb }) + '</p>');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue