diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html
index bd6ccb6c..d02cf7c0 100644
--- a/kfet/templates/kfet/kpsul.html
+++ b/kfet/templates/kfet/kpsul.html
@@ -145,7 +145,7 @@ $(document).ready(function() {
// Initializing
var account_container = $('#account');
var triInput = $('#id_trigramme');
- account_data = {};
+ var account_data = {};
var account_data_default = {
'id' : 0,
'name' : '',
@@ -209,8 +209,8 @@ $(document).ready(function() {
}
function resetAccount() {
- resetAccountData();
triInput.val('');
+ resetAccountData();
}
// Store data