Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
369cd47e
Commit
369cd47e
authored
Nov 10, 2022
by
NGO THI HONG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug Active icon home page
parent
487de3d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
+21
-7
abweb/common/js/header.js
+8
-4
abweb/html/common/header.html
+3
-3
abweb/js/template/template.js
+10
-0
No files found.
abweb/common/js/header.js
View file @
369cd47e
...
...
@@ -12,20 +12,23 @@
DashboardSetting
.
getSettingData
(
function
(
settings
)
{
if
(
settings
.
dashboardHome
==
1
)
{
HEADER
.
goDashboard
();
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_NAME
.
DASHBOARD
;
HEADER
.
goDashboard
();
}
else
{
HEADER
.
goOperationList
()
;
}
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_TAB
.
OPERATION_LIST
;
HEADER
.
goOperationList
();
}
});
}
/**
* Go page of operationList
*/
HEADER
.
goOperationList
=
function
()
{
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_TAB
.
OPERATION_LIST
;
$
(
'#footer'
).
load
(
CONSTANT
.
PAGE_NAME
.
FOOTER
,
function
()
{
sessionStorage
.
activeTab
=
CONSTANT
.
PAGE_TAB
.
OPERATION_LIST
;
HEADER
.
activeInitBottomNav
(
'operationListBottomNav'
);
...
...
@@ -37,6 +40,7 @@
* Go page of dashboard
*/
HEADER
.
goDashboard
=
function
()
{
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_NAME
.
DASHBOARD
;
COMMON
.
avwScreenMove
(
"dashboard.html"
);
};
...
...
abweb/html/common/header.html
View file @
369cd47e
...
...
@@ -5,13 +5,13 @@
<img
src=
"../common/img/logo.svg"
type=
"image"
alt=
""
class=
"img-fluid lang"
lang=
"logo"
>
</a>
<ul
class=
"mr-sm-auto ml-sm-0 ml-auto mb-0 pl-0 d-flex"
>
<li
class=
"active nav-link"
>
<li
class=
"active nav-link"
id=
"iconHomeDashboard"
>
<a
href=
"dashboard.html"
class=
"d-block text-center text-decoration-none"
>
<img
src=
"../common/img/nav_icon_dashboard.svg"
type=
"image"
alt=
""
class=
"p-sm-1 p-0 img-fluid lang"
lang=
"dashboard"
>
<div
class=
"fs-7 d-sm-block d-none lang"
lang=
"dashboard"
></div>
</a>
</li>
<li
class=
"nav-link"
>
<li
class=
"nav-link"
id=
"iconHomeWorkList"
>
<a
href=
"task-list.html"
class=
"d-block text-center text-decoration-none"
>
<img
src=
"../common/img/nav_icon_task.svg"
type=
"image"
alt=
""
class=
"p-sm-1 p-0 img-fluid lang"
lang=
"workList"
>
<div
class=
"fs-7 d-sm-block d-none lang"
lang=
"workList"
></div>
...
...
@@ -29,7 +29,7 @@
<img
src=
"../common/img/menu_icon_account_setting.svg"
type=
"image"
alt=
""
class=
"navbar-dropdown-icon lang"
lang=
"account_setting"
>
<span
class=
"lang"
style=
" color: #6c757d;"
lang=
"account_setting"
></span>
</a>
<a
class=
"dropdown-item "
href=
"
#"
data-toggle=
"modal"
data-target=
"#confirm-modal"
id=
"btnLogout"
>
<a
class=
"dropdown-item "
href=
"
login.html"
id=
"btnLogout"
>
<img
src=
"../common/img/menu_icon_logout.svg"
type=
"image"
alt=
""
class=
"navbar-dropdown-icon lang"
lang=
"dspLogout"
>
<span
class=
"lang"
style=
" color: #6c757d;"
lang=
"dspLogout"
></span>
</a>
...
...
abweb/js/template/template.js
View file @
369cd47e
...
...
@@ -7,6 +7,16 @@ var TEMPLATE = {};
/** template load header */
TEMPLATE
.
loadHearder
=
function
(
elmentId
)
{
$
(
elmentId
).
load
(
"../html/common/header.html"
,
function
()
{
$
(
"#iconHomeDashboard"
).
removeClass
(
'active'
);
$
(
"#iconHomeWorkList"
).
removeClass
(
'active'
);
if
(
sessionStorage
.
activeHomePage
==
CONSTANT
.
PAGE_NAME
.
OPERATION_LIST
)
{
$
(
"#iconHomeWorkList"
).
addClass
(
'active'
);
}
else
{
$
(
"#iconHomeDashboard"
).
addClass
(
'active'
);
}
I18N
.
initi18n
();
});
}
...
...
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