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