Merge pull request #85 from git-marijus/master

make "selected" class work on all navigation menu items
This commit is contained in:
friendica 2013-08-01 14:31:02 -07:00
commit 005f2cbda1
3 changed files with 4 additions and 2 deletions

View File

@ -159,7 +159,7 @@ function connections_content(&$a) {
$sort_type = 0; $sort_type = 0;
$o = ''; $o = '';
nav_set_selected('connections'); nav_set_selected('intros');
if(! local_user()) { if(! local_user()) {

View File

@ -135,6 +135,8 @@ function events_content(&$a) {
return; return;
} }
nav_set_selected('all_events');
if((argc() > 2) && (argv(1) === 'ignore') && intval(argv(2))) { if((argc() > 2) && (argv(1) === 'ignore') && intval(argv(2))) {
$r = q("update event set ignore = 1 where id = %d and uid = %d limit 1", $r = q("update event set ignore = 1 where id = %d and uid = %d limit 1",
intval(argv(2)), intval(argv(2)),

View File

@ -97,7 +97,7 @@
{{/if}} {{/if}}
{{if $nav.notifications}} {{if $nav.notifications}}
<li id="nav-notify-linkmenu" class="nav-menu fakelink"> <li id="nav-notify-linkmenu" class="nav-menu fakelink {{$sel.notifications}}">
<a href="{{$nav.notifications.0}}" title="{{$nav.notifications.1}}">{{$nav.notifications.1}}</a> <a href="{{$nav.notifications.0}}" title="{{$nav.notifications.1}}">{{$nav.notifications.1}}</a>
<span id="notify-update" class="nav-notify fakelink" rel="#nav-notify-menu"></span> <span id="notify-update" class="nav-notify fakelink" rel="#nav-notify-menu"></span>
<ul id="nav-notify-menu" class="menu-popup notify-menus" rel="notify"> <ul id="nav-notify-menu" class="menu-popup notify-menus" rel="notify">