UI: Files sortierbare Tabelle

This commit is contained in:
Messerbill 2015-06-08 22:12:47 +02:00
parent 61947a374d
commit 98337ffdd3
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,5 @@
function init_saimod_sys_files() { function init_saimod_sys_files() {
$("#sai_mod_files_table").tablesorter();
$('#tabs_files a').click(function (e) { $('#tabs_files a').click(function (e) {
$('#tabs_files li').each(function(){ $('#tabs_files li').each(function(){
$(this).removeClass('active');}); $(this).removeClass('active');});
@ -8,6 +9,7 @@ function init_saimod_sys_files() {
} }
function init_saimod_sys_files_list(){ function init_saimod_sys_files_list(){
$("#sai_mod_files_table").tablesorter();
$(".imgdelbtn").click(function(){ $(".imgdelbtn").click(function(){
$.getJSON('./sai.php?sai_mod=.SYSTEM.SAI.saimod_sys_files&action=del&cat='+$(this).attr("cat")+'&id='+$(this).attr("id"), function(data){ $.getJSON('./sai.php?sai_mod=.SYSTEM.SAI.saimod_sys_files&action=del&cat='+$(this).attr("cat")+'&id='+$(this).attr("id"), function(data){
if(data.status){ if(data.status){

View File

@ -1,4 +1,5 @@
<table class="table table-hover table-condensed" style="overflow: auto;"> <table class="table table-hover table-condensed tablesorter" id="sai_mod_files_table" style="overflow: auto;">
<thead>
<tr> <tr>
<th>Name</th> <th>Name</th>
<th>Extension</th> <th>Extension</th>
@ -7,7 +8,10 @@
<th></th> <th></th>
<th></th> <th></th>
</tr> </tr>
${content} </thead>
<tbody>
${content}
</tbody>
<tr> <tr>
<br> <br>
<th><form enctype="multipart/form-data" id="form_${cat}"><input class="form-control" type="file" name="datei_${cat}"></th> <th><form enctype="multipart/form-data" id="form_${cat}"><input class="form-control" type="file" name="datei_${cat}"></th>