mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
feature #3194: Fix upload error message format
This commit is contained in:
parent
9399c659cd
commit
93bc3f7094
@ -679,8 +679,7 @@ function setupCreateFileDialog(){
|
||||
Sunstone.runAction("Image.refresh");
|
||||
},
|
||||
error: function(response){
|
||||
//onError({}, JSON.parse(response) );
|
||||
notifyMessage(response);
|
||||
onError({}, OpenNebula.Error(response));
|
||||
$('div[id="file-'+fileName+'-progressBar"]').remove();
|
||||
}
|
||||
});
|
||||
|
@ -981,8 +981,7 @@ function initialize_create_image_dialog(dialog) {
|
||||
Sunstone.runAction("Image.refresh");
|
||||
},
|
||||
error: function(response){
|
||||
//onError({}, JSON.parse(response) );
|
||||
notifyMessage(response);
|
||||
onError({}, OpenNebula.Error(response));
|
||||
$('div[id="'+fileName+'progressBar"]').remove();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user