Change-Id: Icb27e99605db5745205fa5dfc122eaf01834eaa3
Signed-off-by: lombardof <flombardo@cnit.it>
}
result = client.ns_action(instance_id, action_payload)
- return __response_handler(request, result, None, to_redirect=False, status=result['status'] )
+ return __response_handler(request, result, None, to_redirect=False, status=result['status'] if 'status' in result else None )
@login_required
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');