Fix url création compte depuis K-Psul

This commit is contained in:
Aurélien Delobelle 2016-09-06 17:37:18 +02:00
parent 1f61f79606
commit f6fa13fa95
2 changed files with 2 additions and 2 deletions

View file

@ -110,4 +110,3 @@ function requestAuth(data, callback, focus_next = null) {
}
});
}

View file

@ -198,8 +198,9 @@ $(document).ready(function() {
}
if (account_data['id'] == 0) {
var trigramme = triInput.val().toUpperCase();
var url_base = '{% url 'kfet.account.create' %}'
if (isValidTrigramme(trigramme)) {
buttons += '<a href="/k-fet/accounts/new?trigramme='+trigramme+'" class="btn btn-primary" target="_blank" title="Créer"><span class="glyphicon glyphicon-plus"></span></a>';
buttons += '<a href="'+url_base+'?trigramme='+trigramme+'" class="btn btn-primary" target="_blank" title="Créer"><span class="glyphicon glyphicon-plus"></span></a>';
}
}
account_container.find('.buttons').html(buttons);