Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
S
sidekick
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Privat - Marco Schmiedel
sidekick
Commits
7d4585d2
Commit
7d4585d2
authored
Jul 01, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - script for active menu. ok (2)
parent
c93f95b0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
Master.blade.php
src/Views/Limitless/Help/Layout/Master.blade.php
+1
-1
navigation.js
src/Views/Limitless/Navigation/navigation.js
+11
-1
No files found.
src/Views/Limitless/Help/Layout/Master.blade.php
View file @
7d4585d2
...
...
@@ -24,7 +24,7 @@
@
section
(
'Limitless::SidebarContent'
)
@
Limitless
::
NavigationStart
@
Limitless
::
NavigationMenuItem
([
'url'
=>
''
,
'target'
=>
'_self'
,
'icon'
=>
'icon-home2'
,
'title'
=>
'Home'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'
/
'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-home2'
,
'title'
=>
'Home'
])
@
Limitless
::
NavigationMenuStart
([
'title'
=>
'Elements'
,
'icon'
=>
'icon-grid5'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=Element.Example'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-exclamation'
,
'title'
=>
'Example'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=Element.Alert'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-bubble-notification'
,
'title'
=>
'Alert'
])
...
...
src/Views/Limitless/Navigation/navigation.js
View file @
7d4585d2
$
(
document
).
ready
(
function
()
{
let
currentWindowPath
=
window
.
location
.
search
;
console
.
log
(
currentWindowPath
);
console
.
log
(
'
-----------------------------
'
);
$
(
'
.sidebar-content .nav-link
'
).
each
(
function
()
{
if
(
window
.
location
.
search
==
$
(
this
).
attr
(
'
href
'
))
{
if
(
currentWindowPath
===
''
)
currentWindowPath
=
'
/
'
;
console
.
log
(
$
(
this
).
attr
(
'
href
'
));
if
(
currentWindowPath
==
$
(
this
).
attr
(
'
href
'
))
{
$
(
this
).
addClass
(
'
active
'
)
$
(
this
).
parents
(
'
.nav-item-submenu
'
).
addClass
(
'
nav-item-open
'
);
$
(
this
).
parents
(
'
.nav-group-sub
'
).
css
(
"
display
"
,
"
block
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment