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.
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support