[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/javascript/ -> common.js (source)

   1  /* Reminder: always indent with 4 spaces (no tabs). */
   2  // +---------------------------------------------------------------------------+
   3  // | Geeklog 1.3                                                               |
   4  // +---------------------------------------------------------------------------+
   5  // | Commmon javascript functions                                              |
   6  // |                                                                           |
   7  // +---------------------------------------------------------------------------+
   8  // | Copyright (C) 2005,2006 by the following authors:                         |
   9  // |                                                                           |
  10  // |            Blaine Lang - blaine@portalparts.com                           |
  11  // +---------------------------------------------------------------------------+
  12  // |                                                                           |
  13  // | This program is free software; you can redistribute it and/or             |
  14  // | modify it under the terms of the GNU General Public License               |
  15  // | as published by the Free Software Foundation; either version 2            |
  16  // | of the License, or (at your option) any later version.                    |
  17  // |                                                                           |
  18  // | This program is distributed in the hope that it will be useful,           |
  19  // | but WITHOUT ANY WARRANTY; without even the implied warranty of            |
  20  // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             |
  21  // | GNU General Public License for more details.                              |
  22  // |                                                                           |
  23  // | You should have received a copy of the GNU General Public License         |
  24  // | along with this program; if not, write to the Free Software Foundation,   |
  25  // | Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.           |
  26  // |                                                                           |
  27  // +---------------------------------------------------------------------------+
  28  
  29  // -------------------------------------------------------------------
  30  // caItems(form object)
  31  // Check All Items - generic function that can be used to check and un-check all items in a list
  32  // Used in the Admin Lists - like on the moderation page
  33  // -------------------------------------------------------------------
  34     function caItems(f) {  
  35         var n=f.elements.length;
  36         for (i=0;i<n; i++) {
  37             var field=f.elements[i];
  38             if (field.type == 'checkbox' && field.name.match("delitem")) {
  39                  if (f.chk_selectall.checked) {
  40                      field.checked=true;
  41                  } else {
  42                      field.checked=false;
  43                  }
  44             }
  45  
  46         }
  47     }


Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics