| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 // $Id: panels-base.js,v 1.1.4.1 2009/10/05 22:40:35 merlinofchaos Exp $ 2 /** 3 * @file 4 * Implement basic methods required by all of panels. 5 */ 6 7 (function ($) { 8 Drupal.Panels = {} 9 10 Drupal.Panels.changed = function(item) { 11 if (!item.is('.changed')) { 12 item.addClass('changed'); 13 item.find('div.grabber span.text').append(' <span class="star">*</span> '); 14 } 15 }; 16 17 Drupal.Panels.restripeTable = function(table) { 18 // :even and :odd are reversed because jquery counts from 0 and 19 // we count from 1, so we're out of sync. 20 $('tbody tr:not(:hidden)', $(table)) 21 .removeClass('even') 22 .removeClass('odd') 23 .filter(':even') 24 .addClass('odd') 25 .end() 26 .filter(':odd') 27 .addClass('even'); 28 }; 29 })(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 |