diff options
Diffstat (limited to 'openo-portal')
-rw-r--r-- | openo-portal/portal-catalog/src/main/webapp/catalog/js/package/pmUtil.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/openo-portal/portal-catalog/src/main/webapp/catalog/js/package/pmUtil.js b/openo-portal/portal-catalog/src/main/webapp/catalog/js/package/pmUtil.js index b7b5bbfa..d6321262 100644 --- a/openo-portal/portal-catalog/src/main/webapp/catalog/js/package/pmUtil.js +++ b/openo-portal/portal-catalog/src/main/webapp/catalog/js/package/pmUtil.js @@ -150,11 +150,16 @@ pmUtil.delPackage = function (url) { url : url,
contentType : "application/json",
success : function(resp) {
+ commonUtil.showMessage($.i18n.prop("nfv-package-iui-message-delete-success"), "success");
refreshByCond();
},
- error : function() {
- refreshByCond();
- //commonUtil.showMessage($.i18n.prop("nfv-package-iui-message-delete-error"), "failed");
+ error : function(resp) {
+ if(resp.status == 202 || resp.responseText == "success") {
+ commonUtil.showMessage($.i18n.prop("nfv-package-iui-message-delete-success"), "success");
+ refreshByCond();
+ } else {
+ commonUtil.showMessage($.i18n.prop("nfv-package-iui-message-delete-error"), "failed");
+ }
}
});
}
|