mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
updated modal to not show parentheses when max file size
is not defined... Also fixing hideAlerts error in ACP when opening the upload modal.
This commit is contained in:
@@ -21,7 +21,7 @@ define('uploader', ['csrf'], function(csrf) {
|
||||
|
||||
if (fileSize) {
|
||||
uploadForm.find('#file-size-block')
|
||||
.translateText('[[uploads:maximum-file-size, ' + fileSize + ']]')
|
||||
.translateText('([[uploads:maximum-file-size, ' + fileSize + ']])')
|
||||
.removeClass('hide');
|
||||
} else {
|
||||
uploadForm.find('#file-size-block').addClass('hide');
|
||||
@@ -102,7 +102,7 @@ define('uploader', ['csrf'], function(csrf) {
|
||||
}
|
||||
|
||||
module.hideAlerts = function(modal) {
|
||||
modal.find('#alert-status, #alert-success, #alert-error, #upload-progress-box').addClass('hide');
|
||||
$(modal).find('#alert-status, #alert-success, #alert-error, #upload-progress-box').addClass('hide');
|
||||
};
|
||||
|
||||
return module;
|
||||
|
||||
Reference in New Issue
Block a user