diff options
author | Christian Hofmaier | 2017-09-11 11:46:26 +0200 |
---|---|---|
committer | Christian Hofmaier | 2017-09-11 11:46:26 +0200 |
commit | 45839733f850379fa90af40ca5964a43cbeb5fa6 (patch) | |
tree | b7acfe35453b46832dad6468cac04075432be6d8 /modules-available/news | |
parent | [news] fixed inconsistencies (diff) | |
download | slx-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.html | 8 |
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&newsid={{newsid}}&action=show"><span class="glyphicon glyphicon-share-alt"></span> {{lang_show}}</a> |