mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix image upload
This commit is contained in:
@@ -523,7 +523,13 @@ function initImageUpload_UM( trigger ) {
|
||||
|
||||
trigger.selectedFiles = 0;
|
||||
|
||||
try{
|
||||
data = jQuery.parseJSON(data);
|
||||
} catch (e) {
|
||||
console.log( e );
|
||||
return;
|
||||
}
|
||||
|
||||
if (data.error && data.error != '') {
|
||||
|
||||
trigger.parents('.um-modal-body').append('<div class="um-error-block">'+data.error+'</div>');
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user