aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-07-25 16:52:30 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-07-25 16:52:30 +0200
commite6444adafdd3c50913ca44d8701996e058e064b9 (patch)
treeefff34780b766c63cff9c72f9c2eeef12dd533c7 /boot.php
parentdfba0f13c8c30598f21f1480e2dbfc66c41c9aa9 (diff)
downloadvolse-hubzilla-e6444adafdd3c50913ca44d8701996e058e064b9.tar.gz
volse-hubzilla-e6444adafdd3c50913ca44d8701996e058e064b9.tar.bz2
volse-hubzilla-e6444adafdd3c50913ca44d8701996e058e064b9.zip
change nav selected css class
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index d36512295..f4b43e4c9 100644
--- a/boot.php
+++ b/boot.php
@@ -2946,6 +2946,11 @@ function get_plugin_info($plugin){
return $info;
}}
+if(! function_exists('set_nav_selected')){
+function set_nav_selected($id){
+ return '<script> $(document).ready(function() { $("#'.$id.'").addClass("selected"); });</script>';
+}}
+
if(! function_exists('return_bytes')) {
function return_bytes ($size_str) {
switch (substr ($size_str, -1))
@@ -2968,4 +2973,4 @@ function generate_guid() {
$found = false;
} while ($found == true );
return $guid;
-} \ No newline at end of file
+}