b2evolution PHP Cross Reference Blogging Systems

Source: /rsc/js/extracats.js - 46 lines - 1560 bytes - Summary - Text - Print

Description: This file implements general Javascript functions. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

   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 9 2011-10-24 22:32:00Z fplanque $
  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  }

title

Description

title

Description

title

Description

title

title

Body