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:
Julian Lam
2015-12-14 11:31:49 -05:00
parent 1cf2ad339a
commit 84a039446c
2 changed files with 2 additions and 4 deletions

View File

@@ -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;