plugins/gallery/gallery-bits.js
author Dan
Wed, 25 Jul 2007 20:25:02 -0400
changeset 4 ad3b061a1c76
parent 0 7caf561c50ee
child 10 b38afb86dcad
permissions -rw-r--r--
A few minor bugfixes and visual enhancements for admins

/*
 * Misc functions for Enano.Img Gallery.
 */

function gal_toggle(elem, img, img_open, img_close)
{
  if ( !img_close || !img_open )
  {
    img_close = scriptPath + '/plugins/gallery/toggle-closed.png';
    img_open  = scriptPath + '/plugins/gallery/toggle-open.png';
  }
  if ( elem.style.display == 'block' )
  {
    elem.style.display = 'none';
    img.src = img_close;
  }
  else
  {
    elem.style.display = 'block';
    img.src = img_open;
  }
}