Correction JS K-Psul Account data

This commit is contained in:
Aurélien Delobelle 2016-08-13 10:07:35 +02:00
parent 10623646dd
commit 820687c8af
2 changed files with 8 additions and 4 deletions

View file

@ -3,6 +3,8 @@
<html lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{% endblock %} | K-Fêt - ENS Ulm</title>
{# CSS #}

View file

@ -86,18 +86,20 @@ $(document).ready(function() {
'pk' : 0,
'name' : '',
'email': '',
'is_cof' : '',
'is_cof' : false,
'promo' : '',
'balance': '',
'is_frozen' : '',
'is_frozen' : false,
'departement': '',
'nickname' : '',
}
// Display data
function displayAccountData() {
for (var elem in account_data) {
$('#account-'+elem).text(account_data[elem]);
for (var elem in account_data_default) {
$('#account-'+elem).text(
account_data[elem] ? account_data[elem] : account_data_default[elem]
);
}
}