mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix upload error display
This commit is contained in:
@@ -275,7 +275,7 @@ function initImageUpload_UM( trigger ) {
|
||||
|
||||
trigger.selectedFiles = 0;
|
||||
|
||||
if ( response.status && response.status == false ) {
|
||||
if ( response.status && response.status == false || typeof response.data.error !== 'undefined' ) {
|
||||
|
||||
trigger.parents('.um-modal-body').append('<div class="um-error-block">'+response.data.error+'</div>');
|
||||
trigger.parents('.um-modal-body').find('.upload-statusbar').hide(0);
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user