aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/friends/picker.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/views/default/friends/picker.php b/views/default/friends/picker.php
index c545a643a..a226f24e1 100644
--- a/views/default/friends/picker.php
+++ b/views/default/friends/picker.php
@@ -132,15 +132,20 @@
});
</script>
<script>
+ jQuery(window).bind("load", function() {
// manually add class to corresponding tab for panels that have content - needs to be automated eventually
<?php
-
if (sizeof($users) > 0)
+ $chararray = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
foreach($users as $letter => $gumph) {
+ $tab = strpos($chararray, $letter) + 1;
+ if (is_array($gumph) && sizeof($gumph)) {
?>
- $("div#friendsPickerNavigation" + j + " li.tab3 <?php echo $letter; ?>").addClass("tabHasContent");
+ $("div#friendsPickerNavigation<?php echo $friendspicker - 1; ?> li.tab<?php echo $tab; ?> a").addClass("tabHasContent");
<?php
+ }
}
?>
+ });
</script> \ No newline at end of file