[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/panels/js/ -> layout.js (source)

   1  // $Id: layout.js,v 1.2.4.2 2009/10/05 22:40:35 merlinofchaos Exp $
   2  /**
   3   * @file layout.js
   4   *
   5   * Contains javascript to make layout modification a little nicer.
   6   */
   7  
   8  (function ($) {
   9    Drupal.Panels.Layout = {};
  10    Drupal.Panels.Layout.autoAttach = function() {
  11      $('div.form-item div.layout-icon').click(function() {
  12        $widget = $('input', $(this).parent());
  13        // Toggle if a checkbox, turn on if a radio.
  14        $widget.attr('checked', !$widget.attr('checked') || $widget.is('input[type=radio]'));
  15      });
  16    };
  17  
  18    $(Drupal.Panels.Layout.autoAttach);
  19  })(jQuery);


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