fixed BUG-15: book nums missing for parent books in series
This commit is contained in:
@@ -39,10 +39,11 @@
|
||||
<td data-sort="{{series.id}}{{"{:02d}0".format( num )}}">
|
||||
{% endif %}
|
||||
{% for s in book.series %}
|
||||
{% if not book.child_ref|length %}
|
||||
{{ SeriesBookNum( s.id, book.id ) }} of <a href="/series/{{s.id}}">{{s.title}}</a><br>
|
||||
{% set num = SeriesBookNum( s.id, book.id ) %}
|
||||
{% if num != None %}
|
||||
{{num}} of <a href="/series/{{s.id}}">{{s.title}}</a><br>
|
||||
{% endif %}
|
||||
{% if SeriesBookNum( series.id, book.id ) == 1 %}
|
||||
{% if SeriesBookNum( s.id, book.id ) == 1 %}
|
||||
<script>
|
||||
{% if book.parent|length %}
|
||||
$('#up-{{book.parent[0].id}}').prop("disabled", true)
|
||||
@@ -51,7 +52,7 @@
|
||||
{% endif %}
|
||||
</script>
|
||||
{% endif %}
|
||||
{% if SeriesBookNum( series.id, book.id ) == series.num_books %}
|
||||
{% if SeriesBookNum( s.id, book.id ) == s.num_books %}
|
||||
<script>
|
||||
{% if book.parent|length %}
|
||||
$('#down-{{book.parent[0].id}}').prop("disabled", true)
|
||||
|
||||
Reference in New Issue
Block a user