Correction event JS

- Chrome voulait pas d'événements keypress sur les touches fonctions
- Correction erreur pk/id
This commit is contained in:
Aurélien Delobelle 2016-08-19 03:07:21 +02:00
parent c12efee413
commit 5643e0c1d9

View file

@ -207,7 +207,7 @@ $(document).ready(function() {
function storeAccountData(data) {
account_data = $.extend({}, account_data_default, data);
account_data['balance'] = parseFloat(account_data['balance']);
$('#id_on_acc').val(account_data['pk']);
$('#id_on_acc').val(account_data['id']);
displayAccountData();
}
@ -1038,7 +1038,7 @@ $(document).ready(function() {
// Shorcuts
$(document).on('keypress', function(e) {
$(document).on('keydown', function(e) {
switch (e.keyCode) {
case 112:
// F1 - Cool reset