[ Index ] |
|
Code source de Horde 3.1.3 |
1 /** 2 * $Horde: horde/templates/javascript/quoteBlocks.js,v 1.5 2004/08/26 00:07:29 slusarz Exp $ 3 * 4 * @package Horde 5 */ 6 function toggleQuoteBlock(id, lines) 7 { 8 var block = new Horde_Hideable('qb_' + id); 9 10 block.toggle(); 11 text = document.createTextNode(block.shown() ? 12 '<?php echo _("[Hide Quoted Text]") ?>' : 13 '<?php echo _("[Show Quoted Text -") ?> ' + lines + ' <?php echo _("lines]") ?>'); 14 link = document.createElement('A'); 15 link.href = ''; 16 link.className = 'widget'; 17 link.style.fontSize = '70%'; 18 link.onclick = function() { 19 toggleQuoteBlock(id, lines); 20 return false; 21 } 22 link.appendChild(text); 23 24 var toggle = document.getElementById('qt_' + id); 25 if (toggle.firstChild) { 26 toggle.removeChild(toggle.firstChild); 27 } 28 toggle.appendChild(link); 29 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |