1
0
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:
Vjacheslav Trushkin
2013-07-11 10:58:18 -04:00
parent 6599cabed7
commit a9259b12aa
3 changed files with 6 additions and 3 deletions

View File

@@ -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) {