summaryrefslogtreecommitdiffstats
path: root/modules-available/news
diff options
context:
space:
mode:
authorChristian Hofmaier2017-09-11 11:46:26 +0200
committerChristian Hofmaier2017-09-11 11:46:26 +0200
commit45839733f850379fa90af40ca5964a43cbeb5fa6 (patch)
treeb7acfe35453b46832dad6468cac04075432be6d8 /modules-available/news
parent[news] fixed inconsistencies (diff)
downloadslx-admin-45839733f850379fa90af40ca5964a43cbeb5fa6.tar.gz
slx-admin-45839733f850379fa90af40ca5964a43cbeb5fa6.tar.xz
slx-admin-45839733f850379fa90af40ca5964a43cbeb5fa6.zip
[news] made tables sortable by date
Diffstat (limited to 'modules-available/news')
-rw-r--r--modules-available/news/templates/page-news.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules-available/news/templates/page-news.html b/modules-available/news/templates/page-news.html
index d3cb26b9..b30faa55 100644
--- a/modules-available/news/templates/page-news.html
+++ b/modules-available/news/templates/page-news.html
@@ -32,7 +32,7 @@
<table class="table table-stripped table-condensed stupidtable">
<thead>
<tr>
- <th data-sort="date">{{lang_date}}</th>
+ <th data-sort="int">{{lang_date}}</th>
<th data-sort="string">{{lang_title}}</th>
<th data-sort="string">{{lang_content}}</th>
<th></th>
@@ -41,7 +41,7 @@
<tbody>
{{#list}}
<tr {{#active}}class="active"{{/active}}>
- <td class="text-left text-nowrap">{{date}}</td>
+ <td class="text-left text-nowrap" data-sort-value={{dateline}}>{{date}}</td>
<td><table class="slx-ellipsis"><tr><td>{{title}}</td></tr></table></td>
<td><table class="slx-ellipsis"><tr><td>{{content}}</td></tr></table></td>
<td class="text-nowrap">
@@ -79,7 +79,7 @@
<table class="table table-stripped table-condensed stupidtable">
<thead>
<tr>
- <th data-sort="date">{{lang_date}}</th>
+ <th data-sort="int">{{lang_date}}</th>
<th data-sort="string">{{lang_content}}</th>
<th></th>
</tr>
@@ -87,7 +87,7 @@
<tbody>
{{#listHelp}}
<tr {{#active}}class="active"{{/active}}>
- <td class="text-left text-nowrap">{{date}}</td>
+ <td class="text-left text-nowrap" data-sort-value={{dateline}}>{{date}}</td>
<td><table class="slx-ellipsis"><tr><td>{{content}}</td></tr></table></td>
<td class="text-nowrap">
<a class="btn btn-primary btn-xs" href="?do=news&amp;newsid={{newsid}}&amp;action=show"><span class="glyphicon glyphicon-share-alt"></span> {{lang_show}}</a>