Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mytime
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Narendar Vakiti
mytime
Commits
f7577984
Unverified
Commit
f7577984
authored
Aug 20, 2018
by
mshaik-nisum-com
Committed by
GitHub
Aug 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #160 from nisum-inc/FEATURE/MT-MENUACTIVESTATE
FEATURE/MT-MENUACTIVESTATE
parents
25e37bd5
cae8bd25
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
LeftMenuController.js
src/main/webapp/WEB-INF/controllers/LeftMenuController.js
+3
-0
default-styles.css
src/main/webapp/WEB-INF/css/default-styles.css
+3
-0
leftmenu.html
src/main/webapp/WEB-INF/templates/leftmenu.html
+1
-1
No files found.
src/main/webapp/WEB-INF/controllers/LeftMenuController.js
View file @
f7577984
...
...
@@ -8,6 +8,9 @@ myApp.controller("leftmenuController",function($scope, myFactory, $compile){
$scope
.
setTemplateUrl
=
function
(
path
){
var
element
=
document
.
getElementById
(
'main'
);
path
=
"'"
+
path
+
"'"
;
var
currentEle
=
event
.
currentTarget
;
$
(
'.navbarMenu'
).
removeClass
(
'activeMenu'
);
$
(
currentEle
).
addClass
(
'activeMenu'
);
element
.
setAttribute
(
"ng-include"
,
path
);
var
newTemplate
=
angular
.
element
(
element
);
$
(
'#main'
).
html
(
newTemplate
);
...
...
src/main/webapp/WEB-INF/css/default-styles.css
View file @
f7577984
...
...
@@ -226,3 +226,6 @@ md-select {
.ui-grid-pager-panel
{
background-color
:
floralwhite
;
}
.activeMenu
{
background-color
:
#312A25
;
}
\ No newline at end of file
src/main/webapp/WEB-INF/templates/leftmenu.html
View file @
f7577984
<!-- Sidebar -->
<div
id=
"sidebar-wrapper"
>
<ul
class=
"sidebar-nav col-lg-12 col-md-12 col-sm-12 col-xs-12"
>
<li
ng-repeat=
"menuItem in menuItems"
><a
href=
"#"
<li
ng-repeat=
"menuItem in menuItems"
><a
href=
"#"
class=
"navbarMenu"
ng-click=
"setTemplateUrl(menuItem.path)"
><i
class=
"{{menuItem.icon}}"
style=
"font-size: 1.5em;"
aria-hidden=
"false"
>
</i>
<span
style=
"margin-left: 15px;"
>
{{menuItem.menu}}
</span></a></li>
...
...
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