next button closes the modal
hisakonog opened this issue · comments
hisakonog commented
but doesn't open the next item as it is supposed to
hisakonog commented
code is this:
<a href="#lesson{$lessonNumber}dialog{position()}" data-dismiss="modal" data-toggle="modal" data-target="#dialog{position()+1}" type="button" class="btn btn-primary">Next</a>
Successor function +1 doesn't work?
I think it may be because +1 doesn't apply to the element in the last position...
hisakonog commented
can we do "if position()=last() then dismiss, else toggle position()+1" in xslt?
http://api.jquery.com/position/
http://api.jquery.com/last/
http://www.java2s.com/Code/XML/XSLT-stylesheet/ifstatementinforeachloop.htm
http://www.java2s.com/Code/XML/XSLT-stylesheet/AnexampleofifthenelselogicinXSLT10.htm
hisakonog commented
data-target need to be #lesson{$lessonNumber}dialog{position()+1}