Changeset 2578 for trunk/phpgwapi/templates
- Timestamp:
- 04/16/10 18:58:38 (14 years ago)
- Location:
- trunk/phpgwapi/templates/default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/templates/default/navbar.inc.php
r2529 r2578 64 64 } 65 65 66 $curr_app = NULL; 66 67 $i = 0; 67 68 foreach($GLOBALS['phpgw_info']['navbar'] as $app => $app_data) … … 79 80 { 80 81 $current_app = True; 81 echo '<script>var curr_app = "' . str_replace('_','',$app) . 'id";</script>';82 $curr_app = $app; 82 83 } 83 84 … … 120 121 . ' onmouseout="if ( this.className != \'navbar_butOut\'){this.className=\'navbar_but\'; zoom_out(this.firstChild.firstChild.id);}"' 121 122 . ' onclick="if ( this.className != \'navbar_butOut\'){this.className=\'navbar_butOut\'; zoom_out(curr_app);' 122 . ' document.getElementById(curr_app).parentNode.parentNode.className=\'navbar_but\';curr_app=\'' . str_replace('_','',$app) . 'id\'}"'123 . 'var app = document.getElementById(curr_app); if ( app ) app.parentNode.parentNode.className=\'navbar_but\';curr_app=\'' . str_replace('_','',$app) . 'id\'}"' 123 124 . ' class="navbar_but'.($current_app?'Out':'').'">'; 124 125 … … 162 163 } 163 164 } 165 166 echo '<script>var curr_app = "' . ( ( $curr_app ) ? str_replace( '_','',$curr_app ) . 'id' : '' ) . '";</script>'; 164 167 165 168 if($GLOBALS['phpgw_info']['user']['preferences']['common']['start_and_logout_icons']!='no') -
trunk/phpgwapi/templates/default/navbar.tpl
r2529 r2578 75 75 clearTimeout(zoominTimer[id]); 76 76 var elem = document.getElementById(id); 77 if ( ! elem ) 78 return; 77 79 if (elem.height < 24) 78 80 {
Note: See TracChangeset
for help on using the changeset viewer.