? vertical_tabs-363279-2.patch
Index: vertical_tabs.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/vertical_tabs/vertical_tabs.js,v
retrieving revision 1.3.2.10
diff -u -p -r1.3.2.10 vertical_tabs.js
--- vertical_tabs.js	3 Apr 2009 07:01:20 -0000	1.3.2.10
+++ vertical_tabs.js	10 Apr 2009 17:14:55 -0000
@@ -43,6 +43,22 @@ Drupal.behaviors.verticalTabs = function
 
     $('div.vertical-tabs').html(ul).append(fieldsets);
 
+    // Iterate through vertical tabs and find their associated fieldsets.
+    // Then check fieldsets for required fields, then indicate them on the
+    // vertical tabs list.
+    $('.vertical-tabs-list li a').each(function(){
+      var areaName = $(this).attr('href');
+      if (areaName.indexOf('#') > -1) {
+        areaName = areaName.substr(areaName.indexOf('#') + 1);
+      }    
+      var $fieldarea = $('.vertical-tabs-' + areaName);
+      if ($fieldarea.find('.form-required').length > 0) {
+        $(this)
+        .prepend('&nbsp;')
+        .prepend($('.form-required').eq(0).clone());
+       }
+     });
+
     // Adjust the min-height property of each field area to match the height of the vertical tabs list, then hide them.
     if ($.browser.msie && $.browser.version.substr(0,1) == "6") {
       $('.vertical-tabs-div').add('.vertical-tabs').css('height', $('.vertical-tabs-list').height() - 25); // IE6 min-height doesn't work, so use 'height' instead
