diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-18 22:06:51 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-18 22:06:51 +0200 |
commit | 7b592bc37503add484c87f0661ae65dc4570ec8d (patch) | |
tree | 27e9c13b2848b52a5b7bec5320da489ead90fad0 /src | |
parent | Datatables for the user public profile page. (diff) | |
download | newspipe-7b592bc37503add484c87f0661ae65dc4570ec8d.tar.gz newspipe-7b592bc37503add484c87f0661ae65dc4570ec8d.tar.bz2 newspipe-7b592bc37503add484c87f0661ae65dc4570ec8d.zip |
Datatables for the feeds page.
Diffstat (limited to 'src')
-rw-r--r-- | src/web/templates/feed_list.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/web/templates/feed_list.html b/src/web/templates/feed_list.html index f8e3551e..8c258c3c 100644 --- a/src/web/templates/feed_list.html +++ b/src/web/templates/feed_list.html @@ -1,6 +1,6 @@ {% if feeds.count() != 0 %} <div class="table-responsive"> - <table class="table table-striped"> + <table id="table-feeds" class="table table-striped"> <thead> <tr> <th>#</th> @@ -39,4 +39,17 @@ </tbody> </table> </div> +<script> +$(document).ready(function() { + $('#table-feeds').DataTable( { + responsive: true, + columnDefs: [ + { + bSortable: false, + targets: [0, 1, 4, 5] + } + ] + }); +}); +</script> {% endif %} |