Drupal.behaviors.verticalTabsReload when no tabs present

digi24 - September 12, 2009 - 15:17
Project:Vertical Tabs
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hello,

while debugging anoter problem when loading forms in thickbox, I have noticed that it is caused by Drupal.behaviors.verticalTabsReload.

It complains about some undefined legth in the $.each line. Interestingly the problem does not arise for the admin user.

Can somebody familiar with jQuery quickly guide me, how to implement some validity check?

Drupal.behaviors.verticalTabsReload = function() {
  $.each(Drupal.settings.verticalTabs, function(k, v) {
    if (v.callback && Drupal.verticalTabs[v.callback]) {
      $('a.vertical-tabs-list-' + k + ' span.summary').html(Drupal.verticalTabs[v.callback].apply(this, v.args));
    }
  });
}

#1

digi24 - September 12, 2009 - 15:29
Title:Drupal.behaviors.verticalTabsReload and uid>1» Drupal.behaviors.verticalTabsReload when no tabs present

After further investigation, I think I have identified the problem: The reload behaviour gets executed even when no tabs are present (this explains why it worked for uid=1, who had more rights).

#2

DeFr - September 18, 2009 - 16:09

The patch in #488746: Compatibilty with Popups 2 should fix this.

#3

digi24 - September 19, 2009 - 22:56
Status:active» closed

Thank you very much, problem solved.

 
 

Drupal is a registered trademark of Dries Buytaert.