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
1f641dbf
Commit
1f641dbf
authored
Sep 15, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug: load dashboard setting json failed
parent
e6f25fa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
app/script/check.js
+10
-1
No files found.
app/script/check.js
View file @
1f641dbf
...
@@ -653,6 +653,11 @@ CHK.loadDashboardSetting = function(callback) {
...
@@ -653,6 +653,11 @@ CHK.loadDashboardSetting = function(callback) {
if
(
callback
)
{
if
(
callback
)
{
callback
();
callback
();
}
}
},
function
(
jqXHR
,
textStatus
)
{
//none dashboard setting json file, use default
if
(
callback
)
{
callback
();
}
});
});
// ios clear localStorage when reopen index page
// ios clear localStorage when reopen index page
// var setting = localStorage.getItem('dashboardSetting');
// var setting = localStorage.getItem('dashboardSetting');
...
@@ -776,8 +781,9 @@ CHK.updateReportJsonWeb = function(json, callback) {
...
@@ -776,8 +781,9 @@ CHK.updateReportJsonWeb = function(json, callback) {
*
*
* @param fileName JSONファイル名
* @param fileName JSONファイル名
* @param callback コールバック
* @param callback コールバック
* @param fail
*/
*/
CHK
.
loadJson
=
function
(
fileName
,
callback
)
{
CHK
.
loadJson
=
function
(
fileName
,
callback
,
fail
=
null
)
{
if
(
CHK
.
isAndroid
)
{
if
(
CHK
.
isAndroid
)
{
fileName
=
android
.
getCachePath
()
+
"/"
+
fileName
;
fileName
=
android
.
getCachePath
()
+
"/"
+
fileName
;
}
else
if
(
CHK
.
isIOS
)
{
}
else
if
(
CHK
.
isIOS
)
{
...
@@ -812,6 +818,9 @@ CHK.loadJson = function(fileName, callback) {
...
@@ -812,6 +818,9 @@ CHK.loadJson = function(fileName, callback) {
}).
fail
(
function
(
jqXHR
,
textStatus
,
errorThrown
)
{
}).
fail
(
function
(
jqXHR
,
textStatus
,
errorThrown
)
{
console
.
log
(
"エラー:"
+
textStatus
);
console
.
log
(
"エラー:"
+
textStatus
);
console
.
log
(
"テキスト:"
+
jqXHR
.
responseText
);
console
.
log
(
"テキスト:"
+
jqXHR
.
responseText
);
if
(
fail
)
{
fail
(
jqXHR
,
textStatus
);
}
});
});
}
}
...
...
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