forked from DGNum/gestioCOF
add special character encoding
This commit is contained in:
parent
202199cc18
commit
21cf783144
1 changed files with 3 additions and 1 deletions
|
@ -245,12 +245,14 @@ $(document).ready(function() {
|
||||||
if (account_data['id'] != 0) {
|
if (account_data['id'] != 0) {
|
||||||
var url_base = '{% url 'kfet.account.read' 'LIQ' %}';
|
var url_base = '{% url 'kfet.account.read' 'LIQ' %}';
|
||||||
url_base = url_base.substr(0, url_base.length - 3);
|
url_base = url_base.substr(0, url_base.length - 3);
|
||||||
buttons += '<a href="'+ url_base + account_data['trigramme']+'" class="btn btn-primary" target="_blank" title="Modifier"><span class="glyphicon glyphicon-cog"></span></a>';
|
trigramme = encodeURIComponent(account_data['trigramme']) ;
|
||||||
|
buttons += '<a href="'+ url_base + trigramme +'" class="btn btn-primary" target="_blank" title="Modifier"><span class="glyphicon glyphicon-cog"></span></a>';
|
||||||
}
|
}
|
||||||
if (account_data['id'] == 0) {
|
if (account_data['id'] == 0) {
|
||||||
var trigramme = triInput.val().toUpperCase();
|
var trigramme = triInput.val().toUpperCase();
|
||||||
var url_base = '{% url 'kfet.account.create' %}'
|
var url_base = '{% url 'kfet.account.create' %}'
|
||||||
if (isValidTrigramme(trigramme)) {
|
if (isValidTrigramme(trigramme)) {
|
||||||
|
trigramme = encodeURIComponent(trigramme);
|
||||||
buttons += '<a href="'+url_base+'?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>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue