mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11563] Dynamically generate panels list
PHPBB3-11563
This commit is contained in:
@@ -109,7 +109,10 @@ function dE(n, s, type) {
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('.sub-panels').each(function() {
|
||||
|
||||
var panels = this.getAttribute('data-panels').split(','),
|
||||
var panels = [],
|
||||
childNodes = jQuery('a[data-subpanel]', this).each(function() {
|
||||
panels.push(this.getAttribute('data-subpanel'));
|
||||
}),
|
||||
show_panel = this.getAttribute('data-show-panel');
|
||||
|
||||
if (panels.length) {
|
||||
|
Reference in New Issue
Block a user