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 |
Jump to:
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
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
Thank you very much, problem solved.