--- tabs.js.orig 2010-01-18 03:11:21.000000000 -0500 +++ tabs.js 2010-07-06 10:56:33.000000000 -0400 @@ -2,14 +2,16 @@ Drupal.tabs = Drupal.tabs || {}; -Drupal.behaviors.tabs = function (context) { - // Set the active class to the first tab with an form error. - $('.drupal-tabs').children('ul > li').each( function() { +Drupal.behaviors.tabsErrors = function (context) { + // Set the active class to the first tab with a form error. + $('.drupal-tabs ul').children('li').each( function() { if ($($(this).find('a').attr('href')).find('div.form-item .error:first').size()) { - $(this).addClass('error').addClass('ui-tabs-selected'); + $(this).addClass('ui-tabs-selected'); } - }); + }) +}; +Drupal.behaviors.tabs = function (context) { var fx = {duration: Drupal.settings.tabs.speed}; if (Drupal.settings.tabs.fade) { fx.opacity = 'toggle';