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"> <html lang="fr">
<head> <head>
<meta charset="utf-8"> <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> <title>{% block title %}{% endblock %} | K-Fêt - ENS Ulm</title>
{# CSS #} {# CSS #}

View file

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