From: Kaltar5679 Date: Wed, 3 Jun 2015 10:07:26 +0000 (+0200) Subject: fix accordeon with sort table for playlist X-Git-Tag: 1.6a^2~15^2~39^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=aafc4c42e9ccb0edbc21d923b183806174958796;p=telemeta.git fix accordeon with sort table for playlist --- diff --git a/examples/sandbox/__init__.py b/examples/sandbox/__init__.py index e69de29b..40a96afc 100644 --- a/examples/sandbox/__init__.py +++ b/examples/sandbox/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/examples/sandbox/settings.py b/examples/sandbox/settings.py index 72e5aeab..2a4b9621 100644 --- a/examples/sandbox/settings.py +++ b/examples/sandbox/settings.py @@ -295,3 +295,5 @@ HAYSTACK_CONNECTIONS = { } HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor' + +HAYSTACK_SEARCH_RESULTS_PER_PAGE = 500 \ No newline at end of file diff --git a/examples/sandbox/src/django-haystack b/examples/sandbox/src/django-haystack index cecb459f..bd60745c 160000 --- a/examples/sandbox/src/django-haystack +++ b/examples/sandbox/src/django-haystack @@ -1 +1 @@ -Subproject commit cecb459ff4468a79a43cead3d09e213d0980c080 +Subproject commit bd60745ce82318b1819768c9a31db0579228654d diff --git a/telemeta/templates/telemeta/lists.html b/telemeta/templates/telemeta/lists.html index f5355825..aa5671cf 100644 --- a/telemeta/templates/telemeta/lists.html +++ b/telemeta/templates/telemeta/lists.html @@ -13,6 +13,7 @@ + {% comment "added by Killian Mary" %}{% endcomment %} + + $(document).ready(function() { + var nouvellesIcones = { + header : 'ui-icon-carat-1-e', + activeHeader : 'ui-icon-carat-1-s', + + }; - - - + $.tablesorter.defaults.sortList = [[2,0]]; + {% for playlist in playlists %} + $("#{{playlist.playlist.public_id}}tb").tablesorter({headers: {6:{sorter:false}}} ); + {% endfor %} + }); + {% endblock %} {% comment "added by Killian Mary end" %}{% endcomment %} @@ -90,13 +85,13 @@ $(document).ready(function(){ -
+
{% for playlist in playlists %}
{{ playlist.playlist.title }}
- +
{{ playlist.playlist.title }}