improved javascript for code expansion

main
B Mathis 16 years ago
parent 1eddd60a71
commit 0b744bae5e

@ -1,12 +1,7 @@
window.addEvent('domready', function() {
addPreExpanders();
$$('div.highlight').each(addExpander);
});
function addPreExpanders(){
$$('div.highlight').each(function(div){
addExpander(div);
});
}
function addExpander(div){
new Element('span',{
html: 'expand »',

Loading…
Cancel
Save