Skip to content

Commit

Permalink
issue #1, better way to fix it, replace "/" by "-" for sub-tab
Browse files Browse the repository at this point in the history
  • Loading branch information
plegall committed Jun 19, 2017
1 parent aeadf8e commit 9a2f65c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion amm_aim.class.inc.php
Expand Up @@ -38,7 +38,7 @@ public function adminPanel()
{
global $template;

$template->append('footer_elements', "<script>$(document).ready(function () { $('li a[href=\"".$template->get_template_vars('U_CONFIG_MENUBAR')."\"]').attr('href', '".$this->getAdminLink()."-setmenu'); });</script>");
$template->append('footer_elements', "<script>$(document).ready(function () { $('li a[href=\"".$template->get_template_vars('U_CONFIG_MENUBAR')."\"]').attr('href', '".$this->getAdminLink()."-setmenu-position'); });</script>");
}

} // amm_aim class
Expand Down
6 changes: 3 additions & 3 deletions amm_aip.class.inc.php
Expand Up @@ -129,7 +129,7 @@ private function initRequest()
//initialise $REQUEST values if not defined
if(!array_key_exists('tab', $_GET)) $_GET['tab']='setmenu';

$tmp=explode('/', $_GET['tab'].'/');
$tmp=explode('-', $_GET['tab'].'-');
$_GET['tab']=$tmp[0];
$_REQUEST['t']=$tmp[1];

Expand Down Expand Up @@ -193,10 +193,10 @@ private function displayLinksPage($tab)
$linksTabsheet->select($tab);
$linksTabsheet->add('links',
l10n('g002_setting_link_links'),
$this->getAdminLink().'-links/links');
$this->getAdminLink().'-links-links');
$linksTabsheet->add('config',
l10n('g002_configlinks'),
$this->getAdminLink().'-links/config');
$this->getAdminLink().'-links-config');
$linksTabsheet->assign();

switch($tab)
Expand Down

0 comments on commit 9a2f65c

Please sign in to comment.