UI: Mod sortierbare Tabelle

This commit is contained in:
Messerbill 2015-06-08 22:32:05 +02:00
parent c28ddc55ef
commit ea48285b04
3 changed files with 28 additions and 16 deletions

View File

@ -1,4 +1,5 @@
function init_saimod_sys_mod() { function init_saimod_sys_mod() {
$("#sai_mod_sys_table").tablesorter();
$('#tabs_mod a').click(function (e) { $('#tabs_mod a').click(function (e) {
$('#tabs_mod li').each(function(){ $('#tabs_mod li').each(function(){
$(this).removeClass('active');}); $(this).removeClass('active');});
@ -7,18 +8,21 @@ function init_saimod_sys_mod() {
}; };
function init_saimod_sys_mod_system() { function init_saimod_sys_mod_system() {
$("#sai_mod_sys_table").tablesorter();
$('#tabs_mod li').each(function(){ $('#tabs_mod li').each(function(){
$(this).removeClass('active');}); $(this).removeClass('active');});
$('#menu_mod_system').parent().addClass('active'); $('#menu_mod_system').parent().addClass('active');
} }
function init_saimod_sys_mod_project() { function init_saimod_sys_mod_project() {
$("#sai_mod_sys_table").tablesorter();
$('#tabs_mod li').each(function(){ $('#tabs_mod li').each(function(){
$(this).removeClass('active');}); $(this).removeClass('active');});
$('#menu_mod_project').parent().addClass('active'); $('#menu_mod_project').parent().addClass('active');
} }
function init_saimod_sys_mod_lib() { function init_saimod_sys_mod_lib() {
$("#sai_mod_sys_table").tablesorter();
$('#tabs_mod li').each(function(){ $('#tabs_mod li').each(function(){
$(this).removeClass('active');}); $(this).removeClass('active');});
$('#menu_mod_lib').parent().addClass('active'); $('#menu_mod_lib').parent().addClass('active');

View File

@ -1,8 +1,12 @@
<table class="table table-hover table-condensed sai_table" style="overflow: auto;"> <table class="table table-hover table-condensed sai_table tablesorter" style="overflow: auto;">
<thead>
<tr> <tr>
<th>${table_class}</th> <th>${table_class}</th>
<th>${table_version}</th> <th>${table_version}</th>
<th>${table_interface}</th> <th>${table_interface}</th>
</tr> </tr>
</thead>
<tbody>
${entries} ${entries}
</tbody>
</table> </table>

View File

@ -1,9 +1,13 @@
<table class="table table-hover table-condensed sai_table" style="overflow: auto;"> <table class="table table-hover table-condensed sai_table tablesorter" style="overflow: auto;">
<thead>
<tr> <tr>
<th>Classname</th> <th>Classname</th>
<th>Public</th> <th>Public</th>
<th>You can Access?</th> <th>You can Access?</th>
</tr> </tr>
</thead>
<tbody>
${saistart} ${saistart}
${entries} ${entries}
</tbody>
</table> </table>