summaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-catalog
diff options
context:
space:
mode:
authornancylizi <li.zi30@zte.com.cn>2016-10-21 10:38:33 +0800
committernancylizi <li.zi30@zte.com.cn>2016-10-21 11:20:26 +0800
commit1065084a40dced9e9e7b1f0ae20f0f356a7f5020 (patch)
tree19b174068365766b1957102748436e3cd3b94630 /openo-portal/portal-catalog
parent0490487073c782b0b9eb0d41a7dfb9af693d803c (diff)
Add the alert about delete package.
Change-Id: I24cd8aa136d78c62422d0c973bf4490759c102c7 Issue-id: GSO-32 Signed-off-by: nancylizi <li.zi30@zte.com.cn>
Diffstat (limited to 'openo-portal/portal-catalog')
-rw-r--r--openo-portal/portal-catalog/src/main/webapp/catalog/js/package/pmUtil.js11
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");
+ }
}
});
}