Commit b7317ca3 authored by Anze Vavpetic's avatar Anze Vavpetic

added confirm before deleting a subprocess

parent 95a96575
......@@ -187,6 +187,11 @@ function deleteSelected() {
reportError("Nothing to delete.");
} else if (selectedWidget!=-1) {
var newSelected = selectedWidget;
if ($("#widget"+newSelected).hasClass('subprocess') && !confirm("Are you sure you want to delete this subprocess?")) {
$.post(url['delete-widget'], { "widget_id": selectedWidget }, function(data) {
if ($("#widget"+newSelected).data("workflow_link")>0) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment