don't link next section if we can't find next section
This commit is contained in:
parent
6129bbce17
commit
8f8ae6fcdf
|
@ -311,7 +311,9 @@ class Nev
|
||||||
StHtmlNextSection: (gst, wst) ->
|
StHtmlNextSection: (gst, wst) ->
|
||||||
stSectionNext = $(@dNev).attr("nextsection")
|
stSectionNext = $(@dNev).attr("nextsection")
|
||||||
if stSectionNext?
|
if stSectionNext?
|
||||||
gst.Link("Next section", () -> gst.PushSection(gst.story.SectionByName(stSectionNext), wst))
|
section = gst.story.SectionByName(stSectionNext)
|
||||||
|
if section?
|
||||||
|
gst.Link("Next section", () -> gst.PushSection(section, wst))
|
||||||
StHtmlDisplay: (gst, wst) ->
|
StHtmlDisplay: (gst, wst) ->
|
||||||
jdivTmp = $("<div/>")
|
jdivTmp = $("<div/>")
|
||||||
for dHTML in $(@dNev).contents()
|
for dHTML in $(@dNev).contents()
|
||||||
|
|
Loading…
Reference in a new issue