fix: define orgName in modal js code
@@ -11,7 +11,7 @@ class NewOrgModal {
event.preventDefault();
var $form = $(this), url = $form.attr('action');
- orgName = $(event.currentTarget).find("#orgName").val();
+ var orgName = $(event.currentTarget).find("#orgName").val();
var data = { name: orgName };
$.post(url, JSON.stringify(data), function(data){
window.location.href = "/orgs/target/"+orgName;
