Thank you for your answer, I agree that it's too late to do any change. It's not a problem for me because I can fix this quickly. Anyway you have now an improvement for future versions if you like this optional behavior.
Br, Fran. On Mon, Sep 15, 2014 at 2:10 PM, Hussein Shafie <[email protected]> wrote: > On 09/15/2014 09:10 AM, Francisco Soler wrote: > >> I found some strange behavior when I click into a TOC entry in WebHelp >> transformation. >> >> When I click on one entry, it go to this page and expands each parent >> entry that it has. But it should also expand the current entry to show >> the content of the selected entry (if it has any child). >> >> I made this fix in the wh.js to solve this problem, but I want to report >> it for your information: >> >> Original code >> ----------------------------------------------- >> showEntry: function(entry, scroll) { >> var toc = this.first(); >> entry.parents(toc, "li").each(function() { >> // Show entry code >> ... >> } >> } >> >> Modified code >> ----------------------------------------------- >> showEntry: function(entry, scroll) { >> var toc = this.first(); >> // Apply the function to parents and current entry >> $.merge(entry, entry.parents(toc, "li")).each(function() { >> // Show entry code >> ... >> } >> } >> >> I hope this help you. >> >> > Thank you for your report. > > The behavior you describe: > > * automatic expansion of composite TOC entries always kept to a minimum; > * the user must explicitly click the arrow icon to expand a composite TOC > entry; > > is not really a bug. It's simply a behavior which is different from the > one you except. > > However, the behavior you expect is probably more intuitive than the > currently implemented one. > > Therefore we'll probably change this in a future version of XMLmind DITA > Converter (more precisely, in XMLmind Web Help Compiler, > http://www.xmlmind.com/ditac/whc.shtml , the software component used by > ditac). Unfortunately it's too late to do so in XMLmind DITA Converter > 2.5.3 which should be release before the end of this month. > > > > -- [image: Swiss Mobility Solutions] <http://www.swissmobilitysolutions.com/> Francisco Soler Software Engineer Swiss Mobility Solutions a Gemalto Company [image: Office Telephone]+34966370055 [image: Skype]francisco.soler88 [image: Location]Av. Locutor Vicente Hipólito 39 03540 Alicante Spain <https://maps.google.com/maps?q=Swiss+Mobility+Solutions+S.L,+Alicante,+Spain&hl=en&sll=37.0625,-95.677068&sspn=76.273886,78.837891&oq=swiss+mobility+so&hq=swiss+mobility+solutions+sl&hnear=Alicante,+Valencian+Community,+Spain&t=m&z=13> [image: Email] <[email protected]>[image: LinkedIn] <http://es.linkedin.com/pub/francisco-soler/6a/822/65b>[image: Website] <http://www.swissmobilitysolutions.com/>
-- XMLmind DITA Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/ditac-support

