use django-js-reverse
This commit is contained in:
parent
a9d1a6aae9
commit
abce961d91
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ class AccountManager {
|
|||
if (this.is_empty()) {
|
||||
var trigramme = this.selection.get();
|
||||
if (trigramme.isValidTri()) {
|
||||
var url_base = "{% url 'kfet.account.create' %}";
|
||||
var url_base = Urls['kfet.account.create']();
|
||||
var url = url_base + '?trigramme=' + encodeURIComponent(trigramme);
|
||||
buttons += '<a href="'+url+'" class="btn btn-primary" target="_blank" title="Créer ce compte"><span class="glyphicon glyphicon-plus"></span></a>';
|
||||
} else { /* trigramme input is empty or invalid */
|
||||
|
@ -187,7 +187,7 @@ class AccountSearch {
|
|||
var that = this;
|
||||
|
||||
this._$input.yourlabsAutocomplete({
|
||||
url: '{% url "kfet.account.search.autocomplete" %}',
|
||||
url: Urls['kfet.account.search.autocomplete'],
|
||||
minimumCharacters: 2,
|
||||
id: 'search_autocomplete',
|
||||
choiceSelector: '.choice',
|
||||
|
|
Loading…
Reference in a new issue