[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 /** 2 * This file implements general Javascript functions. 3 * 4 * This file is part of the evoCore framework - {@link http://evocore.net/} 5 * See also {@link http://sourceforge.net/projects/evocms/}. 6 * 7 * @copyright (c)2003-2006 by Francois PLANQUE - {@link http://fplanque.net/} 8 * 9 * {@internal License choice 10 * - If you have received this file as part of a package, please find the license.txt file in 11 * the same folder or the closest folder above for complete license terms. 12 * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/) 13 * then you must choose one of the following licenses before using the file: 14 * - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php 15 * - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php 16 * }} 17 * 18 * @package admin 19 * 20 * {@internal Below is a list of authors who have contributed to design/coding of this file: }} 21 * @author fplanque: Francois PLANQUE. 22 * 23 * @version $Id: extracats.js,v 1.5 2006/11/26 01:42:10 fplanque Exp $ 24 */ 25 26 27 /** 28 * Automagically checks the matching extracat when we select a new main cat 29 */ 30 function check_extracat( radio ) 31 { 32 var main_cat_ID = radio.value; 33 34 // Get ALL the links in the current document: 35 var extracats = document.getElementsByName('post_extracats[]'); 36 37 // Go through all the links: 38 for(var i = 0; i < extracats.length; i++) 39 { 40 var extracat_checkbox = extracats[i]; 41 if( extracat_checkbox.value == main_cat_ID ) 42 { 43 extracat_checkbox.checked = true; 44 } 45 } 46 } 47 48 /* 49 * $Log: extracats.js,v $ 50 * Revision 1.5 2006/11/26 01:42:10 fplanque 51 * doc 52 * 53 */
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |