From 7d52e00a51450bc4a080d4e21b7dda02c0a65191 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Thu, 14 Nov 2013 05:42:06 -0500
Subject: [PATCH] Fixed list sorting
---
interface/web/designer/templates/module_list.htm | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/interface/web/designer/templates/module_list.htm b/interface/web/designer/templates/module_list.htm
index 2980c2a..c82ebef 100644
--- a/interface/web/designer/templates/module_list.htm
+++ b/interface/web/designer/templates/module_list.htm
@@ -1,4 +1,3 @@
-<form name="myform" action="module_list.php" method="POST">
<div class="frmTextHead"><tmpl_var name="list_head_txt"></div><br />
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
@@ -8,13 +7,17 @@
</tr>
<tmpl_loop name="records">
<tr bgcolor="{tmpl_var name="bgcolor"}">
- <td class="frmText11"><a href="module_show.php?id={tmpl_var name='module'}" class="frmText11">{tmpl_var name="module"}</a></td>
- <td class="frmText11"><a href="module_show.php?id={tmpl_var name='module'}" class="frmText11">{tmpl_var name="title"}</a></td>
+ <td class="frmText11"><a href="javascript:loadContent('designer/module_show.php?id={tmpl_var name='module'}');" class="frmText11">{tmpl_var name="module"}</a></td>
+ <td class="frmText11"><a href="javascript:loadContent('designer/module_show.php?id={tmpl_var name='module'}');" class="frmText11">{tmpl_var name="title"}</a></td>
<td class="frmText11" align="right">[<a href="javascript: del_record('module_del.php?id={tmpl_var name='module'}&phpsessid={tmpl_var name='phpsessid'}');" class="frmText11">Delete</a>]</td>
</tr>
</tmpl_loop>
+ <tmpl_unless name="records">
+ <tr class="tbl_row_noresults tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
+ <td colspan="3">{tmpl_var name='globalsearch_noresults_text_txt'}</td>
+ </tr>
+ </tmpl_unless>
<tr>
<td colspan="5" height="40" align="center" class="tblFooter"><tmpl_var name="paging"></td>
</tr>
-</table>
-</form>
\ No newline at end of file
+</table>
\ No newline at end of file
--
Gitblit v1.9.1