[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/blockcache_alter/ -> blockcache_alter.js (source)

   1  // $Id: blockcache_alter.js,v 1.1.2.2 2009/03/15 21:16:40 swentel Exp $
   2  
   3  /**
   4   * Check value of cache_block to see if
   5   * we need to hide or show the additional settings.
   6   */
   7  function BlockCacheAlterCheck() {
   8    var blockcache = $('#edit-cache-block');
   9    var selected = blockcache[0].options[blockcache[0].selectedIndex].value;
  10    if (selected == '-1') {
  11      toggleBlockCacheAlter('hide');
  12    }
  13    else {
  14      toggleBlockCacheAlter('show');
  15    }
  16  }
  17  
  18  /**
  19   * Show or hide additional blockcache settings.
  20   */
  21  function toggleBlockCacheAlter(type) { 
  22    if (type == 'hide') {
  23      $('#blockcache_alter_wrapper').hide('slow');
  24    }
  25    else {
  26      $('#blockcache_alter_wrapper').show('slow'); 
  27    } 
  28  }


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7