source: sipes/modules_contrib/panels/js/layout.js @ 4f375e3

stableversion-3.0
Last change on this file since 4f375e3 was 4f375e3, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el modulo panels

  • Propiedad mode establecida a 100644
File size: 503 octetos
Línea 
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);
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.