| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
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);
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |