1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-19 06:50:07 +03:00

feature #3194: Fix upload error message format

This commit is contained in:
Daniel Molina 2014-09-23 16:49:58 +02:00
parent 9399c659cd
commit 93bc3f7094
2 changed files with 2 additions and 4 deletions

View File

@ -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();
}
});

View File

@ -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();
}
});