X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=static%2Fsrc%2Fdescriptorhandler%2Fcomposer.js;h=d56e22fd9c97b0f90ecbc799c83f1a5abebb9e23;hb=17f074b9da31b3b8f49db34bd3d87b0ca42aab3e;hp=175f46bb2761c8f14be9b76eeeb3feddf80a0381;hpb=e428af7f429a3e42379c42c633ded0651ea2f0cf;p=osm%2FLW-UI.git diff --git a/static/src/descriptorhandler/composer.js b/static/src/descriptorhandler/composer.js index 175f46b..d56e22f 100644 --- a/static/src/descriptorhandler/composer.js +++ b/static/src/descriptorhandler/composer.js @@ -72,13 +72,18 @@ $(document).ready(function () { form_data.forEach(function (value, key) { formDataJson[key] = value; }); + var dialog = bootbox.dialog({ + message: '
Updating...
', + closeButton: true + }); if (graph_editor._selected_node) { graph_editor.updateDataNode(graph_editor._selected_node, formDataJson, function () { - + dialog.modal('hide'); }, function (result) { var data = result.responseJSON; var title = "Error " + (data && data.code ? data.code : 'unknown'); var message = data && data.detail ? data.detail : 'No detail available.'; + dialog.modal('hide'); bootbox.alert({ title: title, message: message @@ -86,11 +91,12 @@ $(document).ready(function () { }) } else { graph_editor.updateGraphParams(formDataJson, function () { - + dialog.modal('hide'); }, function (result) { var data = result.responseJSON; var title = "Error " + (data && data.code ? data.code : 'unknown'); var message = data && data.detail ? data.detail : 'No detail available.'; + dialog.modal('hide'); bootbox.alert({ title: title, message: message