diff options
author | CruiseDevice | 2020-04-26 23:07:46 +0530 |
---|---|---|
committer | CruiseDevice | 2020-04-26 23:07:46 +0530 |
commit | 2116310ed81ed81035a25ccc5746e8114b6a7b24 (patch) | |
tree | 6bd2abe99ecc3a6d4a6727bf8deb6d232c5a4507 /yaksh | |
parent | e261686554ad339449ba9fec6c2391faaefc0eff (diff) | |
download | online_test-2116310ed81ed81035a25ccc5746e8114b6a7b24.tar.gz online_test-2116310ed81ed81035a25ccc5746e8114b6a7b24.tar.bz2 online_test-2116310ed81ed81035a25ccc5746e8114b6a7b24.zip |
Add tablesorter to sort post table
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/templates/yaksh/course_forum.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/course_forum.html b/yaksh/templates/yaksh/course_forum.html index dea4d8f..e6b6a90 100644 --- a/yaksh/templates/yaksh/course_forum.html +++ b/yaksh/templates/yaksh/course_forum.html @@ -60,7 +60,7 @@ <br> <br> {% if posts %} - <table class="table"> + <table id="posts_table" class="tablesorter table"> <thead class="thread-inverse"> <tr> <th width="700">Questions</th> @@ -106,4 +106,10 @@ {% endblock content %} {% block script %} <script type="text/javascript" src="{% static 'yaksh/js/mathjax/MathJax.js' %}?config=TeX-MML-AM_CHTML"></script> + <script type="text/javascript" src="{% static 'yaksh/js/jquery.tablesorter.min.js' %}"></script> + <script type="text/javascript"> + $(document).ready(() => { + $("#posts_table").tablesorter(); + }); + </script> {% endblock script %}
\ No newline at end of file |