N°1792 Fix error message in browser console "Failed to load resource: ERR_INVALID_URL"

This commit is contained in:
Molkobain
2018-11-22 16:01:26 +01:00
parent c42333d085
commit 83e1f35f9c
3 changed files with 13 additions and 10 deletions

View File

@@ -211,6 +211,7 @@ class ApplicationMenu
// Sort the root menu based on the rank
usort(self::$aRootMenus, array('ApplicationMenu', 'CompareOnRank'));
$iAccordion = 0;
$iActiveAccordion = $iAccordion;
$iActiveMenu = self::GetMenuIndexById(self::GetActiveNodeId());
foreach(self::$aRootMenus as $aMenu)
{
@@ -224,16 +225,18 @@ class ApplicationMenu
$oPage->AddToMenu('</ul>');
if ($bActive)
{
$oPage->add_ready_script(
<<<EOF
// Accordion Menu
$("#accordion").css({display:'block'}).accordion({ header: "h3", navigation: true, heightStyle: "content", collapsible: true, active: $iAccordion, icons: false, animate:true }); // collapsible will be enabled once the item will be selected
EOF
);
$iActiveAccordion = $iAccordion;
}
$oPage->AddToMenu('</div>');
$iAccordion++;
}
$oPage->add_ready_script(
<<<EOF
// Accordion Menu
$("#accordion").css({display:'block'}).accordion({ header: "h3", heightStyle: "content", collapsible: true, active: $iActiveAccordion, icons: false, animate: true }); // collapsible will be enabled once the item will be selected
EOF
);
}
/**

View File

@@ -405,7 +405,7 @@ input.textSearch {
}
.ui-accordion-content ul {
list-style: none;
list-style-image: url(data:0);
list-style-image: none;
padding-left: 16px;
margin-top: 8px;
}
@@ -416,7 +416,7 @@ input.textSearch {
padding: 8px 0px 8px 8px;
margin: 0;
list-style: none;
list-style-image: url(data:0);
list-style-image: none;
border: 0;
}
.nothing {

View File

@@ -480,7 +480,7 @@ input.textSearch {
.ui-accordion-content ul {
list-style:none;
list-style-image: url(data:0);
list-style-image: none;
padding-left:16px;
margin-top: 8px;
}
@@ -493,7 +493,7 @@ input.textSearch {
padding: 8px 0px 8px 8px;
margin:0;
list-style:none;
list-style-image: url(data:0);
list-style-image: none;
border: 0;
}