fixed BUG-15: book nums missing for parent books in series
This commit is contained in:
3
BUGs
3
BUGs
@@ -1,5 +1,4 @@
|
|||||||
#### BUGS (next-15)
|
#### BUGS (next-16)
|
||||||
BUG-15: http://mara.ddp.net:5000/series/36 -- book num's not showing (b/c books are parent books? in a different series)
|
|
||||||
|
|
||||||
### DB/back-end
|
### DB/back-end
|
||||||
BUG-2: series does not deal with calcd_rating...
|
BUG-2: series does not deal with calcd_rating...
|
||||||
|
|||||||
@@ -39,10 +39,11 @@
|
|||||||
<td data-sort="{{series.id}}{{"{:02d}0".format( num )}}">
|
<td data-sort="{{series.id}}{{"{:02d}0".format( num )}}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for s in book.series %}
|
{% for s in book.series %}
|
||||||
{% if not book.child_ref|length %}
|
{% set num = SeriesBookNum( s.id, book.id ) %}
|
||||||
{{ SeriesBookNum( s.id, book.id ) }} of <a href="/series/{{s.id}}">{{s.title}}</a><br>
|
{% if num != None %}
|
||||||
|
{{num}} of <a href="/series/{{s.id}}">{{s.title}}</a><br>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if SeriesBookNum( series.id, book.id ) == 1 %}
|
{% if SeriesBookNum( s.id, book.id ) == 1 %}
|
||||||
<script>
|
<script>
|
||||||
{% if book.parent|length %}
|
{% if book.parent|length %}
|
||||||
$('#up-{{book.parent[0].id}}').prop("disabled", true)
|
$('#up-{{book.parent[0].id}}').prop("disabled", true)
|
||||||
@@ -51,7 +52,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if SeriesBookNum( series.id, book.id ) == series.num_books %}
|
{% if SeriesBookNum( s.id, book.id ) == s.num_books %}
|
||||||
<script>
|
<script>
|
||||||
{% if book.parent|length %}
|
{% if book.parent|length %}
|
||||||
$('#down-{{book.parent[0].id}}').prop("disabled", true)
|
$('#down-{{book.parent[0].id}}').prop("disabled", true)
|
||||||
|
|||||||
Reference in New Issue
Block a user