fixed bug with disabling up/down buttons per series, rather than for the series we are viewing (it is now/should be based on how move code works)

This commit is contained in:
2020-11-28 18:36:07 +11:00
parent 265948b95f
commit f70f008f1d

View File

@@ -42,7 +42,7 @@
{% if not book.child_ref|length %} {% if not book.child_ref|length %}
{{ SeriesBookNum( s.id, book.id ) }} of <a href="/series/{{s.id}}">{{s.title}}</a><br> {{ SeriesBookNum( s.id, book.id ) }} of <a href="/series/{{s.id}}">{{s.title}}</a><br>
{% endif %} {% endif %}
{% if SeriesBookNum( s.id, book.id ) == 1 %} {% if SeriesBookNum( series.id, book.id ) == 1 %}
<script> <script>
{% if book.parent_ref|length %} {% if book.parent_ref|length %}
$('#up-{{book.parent_ref[0].book_id}}').addClass("disabled") $('#up-{{book.parent_ref[0].book_id}}').addClass("disabled")
@@ -51,7 +51,7 @@
{% endif %} {% endif %}
</script> </script>
{% endif %} {% endif %}
{% if SeriesBookNum( s.id, book.id ) == s.num_books %} {% if SeriesBookNum( series.id, book.id ) == series.num_books %}
<script> <script>
{% if book.parent_ref|length %} {% if book.parent_ref|length %}
$('#down-{{book.parent_ref[0].book_id}}').addClass("disabled") $('#down-{{book.parent_ref[0].book_id}}').addClass("disabled")