Change-Id: I3f757d835adadf9ce3a36334e07fe553cb22029e
Signed-off-by: lombardof <flombardo@cnit.it>
<script>
var descr_list_url = '{% url "projects:list_descriptors" project_id=project_id descriptor_type=descriptor_type%}';
var csrf_token = '{{csrf_token}}';
+ var new_desc_url ="{% url 'projects:new_descriptor' project_id=project_id descriptor_type=descriptor_type %}"
function cancel(id) {
window.location.href = descr_list_url
<script>
var csrf_token = '{{csrf_token}}';
var descr_list_url = '{% url "projects:list_descriptors" project_id=project_id descriptor_type=descriptor_type%}';
+ var new_desc_url ="{% url 'projects:new_descriptor' project_id=project_id descriptor_type=descriptor_type %}"
</script>
<script src="/static/bower_components/select2/dist/js/select2.js"></script>
<script src="/static/src/instancehandler/instance_create.js"></script>
data.append('id', '{{descriptor_id}}');
console.log(text);
$.ajax({
- url: "new",
+ url: new_desc_url,
type: 'POST',
data: data,
cache: false,