forked from DGNum/gestioCOF
Correction event JS
- Chrome voulait pas d'événements keypress sur les touches fonctions - Correction erreur pk/id
This commit is contained in:
parent
c12efee413
commit
5643e0c1d9
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue