Fix image upload

This commit is contained in:
champsupertramp
2016-05-23 18:29:54 +08:00
parent 729b4af5c0
commit 44d6fdb832
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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>');
+1 -1
View File
File diff suppressed because one or more lines are too long