Download & Extend

Drupal.behaviors.verticalTabsReload when no tabs present

Project:Vertical Tabs
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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));
    }
  });
}

Comments

#1

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

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

#3

Status:active» closed (fixed)

Thank you very much, problem solved.

nobody click here