feature_948_accordion feature 948 : fix problem with incorrect submenu open in admin use a new variable (U_ACTIVE_MENU) and use default position defined in selected_admin_menu if not exists
git-svn-id: http://piwigo.org/svn/trunk@3216 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
2b9d21eb78
commit
4c3b1face6
4 changed files with 7 additions and 2 deletions
|
|
@ -92,7 +92,8 @@ $start_url = get_root_url().'admin.php?page=advanced_feature&action=';
|
|||
$template->assign(
|
||||
array
|
||||
(
|
||||
'U_HELP' => get_root_url().'popuphelp.php?page=advanced_feature'
|
||||
'U_HELP' => get_root_url().'popuphelp.php?page=advanced_feature',
|
||||
'U_ACTIVE_MENU' => 5
|
||||
));
|
||||
|
||||
// advanced_features
|
||||
|
|
|
|||
|
|
@ -133,6 +133,7 @@ SELECT element_id
|
|||
else if ('not_linked' == $_GET['cat'])
|
||||
{
|
||||
$page['title'] = l10n('Elements_not_linked');
|
||||
$template->assign(array('U_ACTIVE_MENU' => 5 ));
|
||||
|
||||
// we are searching elements not linked to any virtual category
|
||||
$query = '
|
||||
|
|
@ -163,6 +164,7 @@ SELECT DISTINCT(image_id)
|
|||
else if ('duplicates' == $_GET['cat'])
|
||||
{
|
||||
$page['title'] = l10n('Duplicates');
|
||||
$template->assign(array('U_ACTIVE_MENU' => 5 ));
|
||||
|
||||
// we are searching related elements twice or more to physical categories
|
||||
// 1 - Retrieve Files
|
||||
|
|
|
|||
|
|
@ -33,7 +33,9 @@ function selected_admin_menu()
|
|||
case 'tags':
|
||||
return 3;
|
||||
case 'user_list':
|
||||
case 'user_perm':
|
||||
case 'group_list':
|
||||
case 'group_perm':
|
||||
case 'notification_by_mail':
|
||||
return 4;
|
||||
case 'stats':
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ jQuery().ready(function(){ldelim}
|
|||
jQuery('#menubar').accordion({ldelim}
|
||||
header: "dt.rdion",
|
||||
event: "click",
|
||||
active: {$themeconf.selected_admin_menu}
|
||||
active: {$U_ACTIVE_MENU|default:$themeconf.selected_admin_menu}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue