root / drupal7 / sites / all / modules / panels / js / layout.js @ fc3d89c3
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); |