diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html
index 9d44a09d..88f8f2f9 100644
--- a/kfet/templates/kfet/kpsul.html
+++ b/kfet/templates/kfet/kpsul.html
@@ -48,11 +48,11 @@
F9
@@ -245,12 +245,14 @@ $(document).ready(function() {
if (account_data['id'] != 0) {
var url_base = '{% url 'kfet.account.read' 'LIQ' %}';
url_base = url_base.substr(0, url_base.length - 3);
- buttons += '
';
+ trigramme = encodeURIComponent(account_data['trigramme']) ;
+ buttons += '
';
}
if (account_data['id'] == 0) {
var trigramme = triInput.val().toUpperCase();
var url_base = '{% url 'kfet.account.create' %}'
if (isValidTrigramme(trigramme)) {
+ trigramme = encodeURIComponent(trigramme);
buttons += '
';
}
}
@@ -1250,13 +1252,13 @@ $(document).ready(function() {
return false;
case 113:
if (e.shiftKey) {
- // Shift+F2 - Basket reset
- resetBasket();
- articleSelect.focus();
- } else {
- // F2 - Account reset
+ // Shift+F2 - Account reset
resetAccount();
triInput.focus();
+ } else {
+ // F2 - Basket reset
+ resetBasket();
+ articleSelect.focus();
}
return false;
case 114: