X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=static%2Fsrc%2Finstancehandler%2Finstance_list.js;h=47d495784233afcff9a91a33d657f4df3617ad8a;hb=7e33ad65244c7babe04cefcaf2a1dc2bc72e278f;hp=161cc51bcda803a1432ba6e7793968e260450a3d;hpb=fb37bca4b7e8178c65df2f1496afe372c1d55e78;p=osm%2FLW-UI.git diff --git a/static/src/instancehandler/instance_list.js b/static/src/instancehandler/instance_list.js index 161cc51..47d4957 100644 --- a/static/src/instancehandler/instance_list.js +++ b/static/src/instancehandler/instance_list.js @@ -19,9 +19,11 @@ function performAction(url) { $('#modal_instance_new_action').modal('show'); } -function deleteNs(url) { +function deleteNs(url, force) { bootbox.confirm("Are you sure want to delete?", function (result) { if (result) { + if(force) + url = url + '?force=true'; location.href = url } }) @@ -66,7 +68,7 @@ function showInstanceDetails(url_info) { }, error: function (result) { dialog.modal('hide'); - bootbox.alert("An error occurred while retrieving the information for the NS"); + bootbox.alert("An error occurred while retrieving the information."); } }); } @@ -124,6 +126,10 @@ $(document).ready(function () { processData: false }).done(function (response,textStatus, jqXHR) { $('#modal_instance_new_action').modal('hide'); + bootbox.alert({ + title: "Action", + message: "Action received." + }); }).fail(function(result){ var data = result.responseJSON; var title = "Error " + (data.code ? data.code: 'unknown');