diff options
author | jin xin <j00101220@huawei.com> | 2016-10-21 06:35:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@open-o.org> | 2016-10-21 06:35:13 +0000 |
commit | 87a8df023e4cb1fc820cc6a57030822e3fef1b84 (patch) | |
tree | cdaee6e4c33490f7b698da92ccddd693d2007c8e | |
parent | f1269494ceecc6784a820cb14de602c2f61284a4 (diff) | |
parent | 1065084a40dced9e9e7b1f0ae20f0f356a7f5020 (diff) |
Merge "Add the alert about delete package." into sun
-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");
+ }
}
});
}
|