Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
design
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
abookCheck
design
Commits
23123d6f
Commit
23123d6f
authored
Aug 28, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#49153 improve save, load dashboard setting
parent
42cdd05c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
app/script/check-dashboard-setting.js
+11
-6
app/script/check.js
+1
-1
No files found.
app/script/check-dashboard-setting.js
View file @
23123d6f
...
...
@@ -11,6 +11,12 @@ CHK_DashboardSetting.loadSettings = function() {
let
enabled
=
CHK
.
dashboardSetting
[
item
.
id
];
if
(
typeof
enabled
!==
'undefined'
)
{
item
.
enabled
=
enabled
;
let
itemElement
=
$
(
'#'
+
item
.
id
);
if
(
item
.
enabled
)
{
itemElement
.
addClass
(
'checked'
);
}
else
{
itemElement
.
removeClass
(
'checked'
);
}
}
});
}
...
...
@@ -60,15 +66,14 @@ CHK_DashboardSetting.bindToggleClick = function() {
CHK_DashboardSetting
.
init
=
function
()
{
CHK
.
initCommon
();
CHK
.
loadDashboardSetting
(
function
()
{
CHK_DashboardSetting
.
loadSettings
();
CHK_DashboardSetting
.
initDisplays
();
CHK_DashboardSetting
.
bindToggleClick
();
});
CHK_DashboardSetting
.
initDisplays
();
CHK_DashboardSetting
.
bindToggleClick
();
$
(
"#footer"
).
load
(
"main-footer.html"
,
function
()
{
CHK_Footer
.
activeDashboardBottomNav
();
});
CHK
.
loadDashboardSetting
(
function
()
{
CHK_DashboardSetting
.
loadSettings
();
});
}
CHK_DashboardSetting
.
goBack
=
function
()
{
...
...
app/script/check.js
View file @
23123d6f
...
...
@@ -400,6 +400,7 @@ CHK.initCommon = function() {
//save url parameter of top page
CHK
.
saveInitSession
();
}
CHK
.
loadDashboardSetting
();
// ウェブの場合、作業一覧の表示広さを変更
if
(
CHK
.
isWeb
)
{
...
...
@@ -443,7 +444,6 @@ CHK.initCommon = function() {
CHK
.
init
=
function
()
{
//共通処理
CHK
.
initCommon
();
CHK
.
loadDashboardSetting
();
//VR設定
krpano
.
call
(
"set(content[def].useVr, false);"
);
...
...
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