Commit b14dd589 authored by Denis S. Valdenaire's avatar Denis S. Valdenaire

fixes #44

parent cb4f9e06
<div class="panel panel-default">
<div class="panel-heading">
<h4>
<span class="glyphicon glyphicon-list-alt" style="margin-right: 10px" ></span>
<span class="glyphicon glyphicon-list-alt" style="margin-right: 10px;" ></span>
<?=($esar_category->id != 0) ? "Catégorie ESAR : ".$esar_category->name : "Nouvelle catégorie ESAR"?>
</h4>
</div>
......
......@@ -15,7 +15,7 @@
<div class="panel-body">
<div class="col-sm-12" align="center">
<table id="list_esar">
<table id="list_esar" style="display:none">
<thead>
<tr>
<th>Label</th>
......@@ -44,7 +44,12 @@ while(list($key, $val) = each($esar_categories)) { ?>
<script>
$(document).ready(function() {
$('#list_esar').DataTable({"autoWidth": false})
$('#list_esar').DataTable({
"autoWidth": false,
"fnDrawCallback": function() {
$(this).show();
}
})
});
/* FIXME : translation of the table
see https://datatables.net/plug-ins/i18n/French
......
......@@ -16,7 +16,7 @@
<div class="col-sm-12" align="center">
<table id="list_jeu">
<table id="list_jeu" style="display:none">
<thead>
<tr>
<th>Nom</th>
......@@ -48,11 +48,12 @@ while(list($key, $val) = each($games)) { ?>
</div>
<script>
$(document).ready(function() {
$('#list_jeu').DataTable(
/*{"autoWidth": false}*/
)
/* .removeClass( 'display' )
.addClass('table table-striped table-bordered');*/
$('#list_jeu').DataTable({
"autoWidth": false,
"fnDrawCallback": function() {
$(this).show();
}
});
$('#new_button').click(function(){
$('#a').val('new');
defaultform.submit();
......
......@@ -13,7 +13,7 @@
<div class="panel-body">
<div class="col-sm-12" align="center">
<table id="list_member">
<table id="list_member" style="display:none">
<thead>
<tr>
<th>Nom</th>
......@@ -44,7 +44,12 @@ while(list($key, $val) = each($members)) { ?>
</div>
<script>
$(document).ready(function() {
$('#list_member').DataTable({"autoWidth": false})
$('#list_member').DataTable({
"autoWidth": false,
"fnDrawCallback": function() {
$(this).show();
}
})
$('#new_button').click(function(){
$('#a').val('new');
defaultform.submit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment