[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 // 2 // Created on: <20-Jul-2004 10:54:01 fh> 3 // 4 // SOFTWARE NAME: eZ publish 5 // SOFTWARE RELEASE: 3.9.0 6 // BUILD VERSION: 17785 7 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 8 // SOFTWARE LICENSE: GNU General Public License v2.0 9 // NOTICE: > 10 // This program is free software; you can redistribute it and/or 11 // modify it under the terms of version 2.0 of the GNU General 12 // Public License as published by the Free Software Foundation. 13 // 14 // This program is distributed in the hope that it will be useful, 15 // but WITHOUT ANY WARRANTY; without even the implied warranty of 16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 // GNU General Public License for more details. 18 // 19 // You should have received a copy of version 2.0 of the GNU General 20 // Public License along with this program; if not, write to the Free 21 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 22 // MA 02110-1301, USA. 23 // 24 // 25 26 /*! \file ezjsselection.js 27 */ 28 29 30 /*! 31 Invert the status of checkboxes named 'checkboxname' in form 'formname'. 32 If you have a list of checkboxes name them with 'someName[]' in order to toggle them all. 33 */ 34 function ezjs_toggleCheckboxes( formname, checkboxname ) 35 { 36 with( formname ) 37 { 38 for( var i=0; i<elements.length; i++ ) 39 { 40 if( elements[i].type == 'checkbox' && elements[i].name == checkboxname && elements[i].disabled == "" ) 41 { 42 if( elements[i].checked == true ) 43 { 44 elements[i].checked = false; 45 } 46 else 47 { 48 elements[i].checked = true; 49 } 50 } 51 } 52 } 53 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |