[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

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

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


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7