fix js k-psul

This commit is contained in:
Aurélien Delobelle 2016-09-05 20:38:15 +02:00
parent 985dd2e82d
commit a5b19b4328

View file

@ -67,7 +67,7 @@ function getErrorsHtml(data) {
}
if ('negative' in data['errors']) {
var url_base = "{% url 'kfet.account.update' LIQ}";
url_base = url_base(0, url_base.length-8);
url_base = url_base.substr(0, url_base.length - 8);
for (var i=0; i<data['errors']['negative'].length; i++) {
content += '<a class="btn btn-primary" href="'+url_base+data['errors']['negative'][i]+'/edit" target="_blank" style="width:100%">Autorisation de négatif requise pour '+data['errors']['negative'][i]+'</a>';
}