Orgs: fixed "Create New Organization" button

It now actually creates the new org and shows it.
This commit is contained in:
2017-08-24 10:45:56 +02:00
parent 5f607fa2cf
commit d41e2bbce4
2 changed files with 11 additions and 5 deletions

View File

@@ -158,11 +158,11 @@ script.
seat_count: 1,
}
)
.done(function() {
.done(function(result) {
var $p = $('<p>').text('organization created, reloading list.')
$('#create_organization_result_panel').html($p);
window.location.reload();
window.location.href = result.location;
})
.fail(function(err) {
var msg = xhrErrorResponseMessage(err);
@@ -178,6 +178,7 @@ script.
})
})
;
return false;
}
{% endif %}
| {% endblock %}