FieldDB / migmaq-lessons

Repository for website building Mi'gmaq language lessons.
http://fielddb.github.io/migmaq-lessons
Other
1 stars 3 forks source link

next button closes the modal #2

Closed hisakonog closed 10 years ago

hisakonog commented 10 years ago

but doesn't open the next item as it is supposed to

hisakonog commented 10 years ago

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 10 years ago

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 10 years ago

data-target need to be #lesson{$lessonNumber}dialog{position()+1}