r16
(added a toc_none config parameter, as suggested by jlemoine ...) committed by nperriault
- added a toc_none config parameter, as suggested by jlemoine (closes #1)
added a toc_none config parameter, as suggested by jlemoine (closes #1)
Oct 27, 2008
issue 1
(Adding a parameter for the "empty toc" message) reported by jlemo...@logicielslibres.org
- In version 0.4.
Nothing fancy, but I like to customize this message. Since the project is
well organized, it's pretty easy.
Line 110, replace:
toc += '<p>No heading found for this document.</p>';
with:
toc += '<p>' + config.toc_none + '</p>';
Then line 47, just before the definition of 'toc_title', add this line :
toc_none : 'No heading found for this document.',
You now have a new parameter. You could use for instance:
$('#post').planize({
generate_toc : true,
toc_elem : $('#toc'),
toc_none : "Nothing here",
toc_title : "My fancy TOC"
});
My two cents...
In version 0.4.
Nothing fancy, but I like to customize this message. Since the project is
well organized, it's pretty easy.
Line 110, replace:
toc += '<p>No heading found for this document.</p>';
with:
toc += '<p>' + config.toc_none + '</p>';
Then line 47, just before the definition of 'toc_title', add this line :
toc_none : 'No heading found for this document.',
You now have a new parameter. You could use for instance:
$('#post').planize({
generate_toc : true,
toc_elem : $('#toc'),
toc_none : "Nothing here",
toc_title : "My fancy TOC"
});
My two cents...
Oct 07, 2008
r15
(fixed js error when using jqplanize with IE6/7) committed by nperriault
- fixed js error when using jqplanize with IE6/7