1
1
Fork 0

Added/Changed accesskeys for the new tab actions

This commit is contained in:
Michael Vogel 2015-12-02 07:56:10 +01:00
parent 7ed73a06ab
commit 4286225f37
2 changed files with 7 additions and 3 deletions

View file

@ -33,6 +33,10 @@ General
/contacts (single contact view) /contacts (single contact view)
------------------------------- -------------------------------
* m: Status messages
* o: Profile
* t: Contacts
* d: Common friends
* b: Toggle Blocked status * b: Toggle Blocked status
* i: Toggle Ignored status * i: Toggle Ignored status
* v: Toggle Archive status * v: Toggle Archive status

View file

@ -829,7 +829,7 @@ function contacts_tab($a, $contact_id, $active_tab) {
'sel' => (($active_tab == 2)?'active':''), 'sel' => (($active_tab == 2)?'active':''),
'title' => t('Profile Details'), 'title' => t('Profile Details'),
'id' => 'status-tab', 'id' => 'status-tab',
'accesskey' => 'r', 'accesskey' => 'o',
) )
); );
@ -840,7 +840,7 @@ function contacts_tab($a, $contact_id, $active_tab) {
'sel' => (($active_tab == 3)?'active':''), 'sel' => (($active_tab == 3)?'active':''),
'title' => t('View all contacts'), 'title' => t('View all contacts'),
'id' => 'allfriends-tab', 'id' => 'allfriends-tab',
'accesskey' => ''); 'accesskey' => 't');
$common = count_common_friends(local_user(),$contact_id); $common = count_common_friends(local_user(),$contact_id);
if ($common) if ($common)
@ -849,7 +849,7 @@ function contacts_tab($a, $contact_id, $active_tab) {
'sel' => (($active_tab == 4)?'active':''), 'sel' => (($active_tab == 4)?'active':''),
'title' => t('View all common friends'), 'title' => t('View all common friends'),
'id' => 'common-loc-tab', 'id' => 'common-loc-tab',
'accesskey' => ''); 'accesskey' => 'd');
$tabs[] = array('label' => t('Repair'), $tabs[] = array('label' => t('Repair'),
'url' => $a->get_baseurl(true) . '/crepair/' . $contact_id, 'url' => $a->get_baseurl(true) . '/crepair/' . $contact_id,