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
8f7b8434
Commit
8f7b8434
authored
Nov 18, 2022
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add showLoading when init runs, delete unnecessary logs
parent
e8e4cdb0
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
9 additions
and
39 deletions
+9
-39
abweb/common/js/common.js
+1
-2
abweb/js/dashboard/dashboard.js
+1
-0
abweb/js/pdfPrint/pdfPrint.js
+1
-1
abweb/js/pickup/pickup.js
+1
-1
abweb/js/pushMessageDetail/pushMessageDetail.js
+1
-0
abweb/js/pushMessageList/pushMessageList.js
+1
-0
abweb/js/reportForm/reportForm.js
+1
-0
abweb/js/reportList/reportList.js
+0
-35
abweb/js/sendMessage/sendMessage.js
+1
-0
abweb/js/setting/settings.js
+1
-0
No files found.
abweb/common/js/common.js
View file @
8f7b8434
...
...
@@ -43,6 +43,7 @@ COMMON.avwScreenMove = function (url) {
COMMON
.
showLoading
();
window
.
onbeforeunload
=
null
;
window
.
location
=
url
;
COMMON
.
closeLoading
();
};
/**
...
...
@@ -52,7 +53,6 @@ COMMON.avwScreenMove = function (url) {
* @param {String} key
*/
COMMON
.
showLoading
=
function
()
{
console
.
log
(
'kdh check showLoading'
);
$
(
'#loader'
).
css
({
width
:
$
(
window
).
width
(),
height
:
$
(
window
).
height
(),
...
...
@@ -301,7 +301,6 @@ COMMON.cmsAjax = function (url, param, async = true, callback, errorCallback, ty
*/
COMMON
.
checkAuth
=
function
(
async
=
true
)
{
let
params
=
{};
console
.
log
(
'kdh check'
);
params
.
sid
=
COMMON
.
getSid
;
const
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
AUTH_SESSION
;
COMMON
.
cmsAjax
(
url
,
params
,
async
,
null
,
function
()
{
...
...
abweb/js/dashboard/dashboard.js
View file @
8f7b8434
...
...
@@ -128,6 +128,7 @@ DASHBOARD.initHtmlItem = function (item) {
/** Initialization dashboard screen */
DASHBOARD
.
init
=
function
()
{
//Check if user is logged in
COMMON
.
showLoading
();
COMMON
.
checkAuth
(
false
);
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_TAB
.
DASHBOARD
;
...
...
abweb/js/pdfPrint/pdfPrint.js
View file @
8f7b8434
...
...
@@ -11,9 +11,9 @@ var PP = {};
*/
PP
.
init
=
function
()
{
//Check if user is logged in
COMMON
.
showLoading
();
COMMON
.
checkAuth
(
false
);
console
.
log
(
'PP.init'
);
PP
.
loadCommon
();
COMMON
.
closeLoading
();
...
...
abweb/js/pickup/pickup.js
View file @
8f7b8434
...
...
@@ -133,10 +133,10 @@ PICKUP.getReportWithWarningsListData = function (callback) {
*/
PICKUP
.
init
=
function
()
{
//Check if user is logged in
COMMON
.
showLoading
();
COMMON
.
checkAuth
(
false
);
console
.
log
(
'PICKUP.init'
);
sessionStorage
.
removeItem
(
"pickUpType"
);
// sessionStorage.pickUpType = null;
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_TAB
.
DASHBOARD
;
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
...
...
abweb/js/pushMessageDetail/pushMessageDetail.js
View file @
8f7b8434
...
...
@@ -22,6 +22,7 @@ PushMessageDetail.dummyMessageDetailJson = {
* init when html loaded
*/
PushMessageDetail
.
init
=
function
()
{
COMMON
.
showLoading
();
//Check if user is logged in
COMMON
.
checkAuth
(
false
);
//load common html
...
...
abweb/js/pushMessageList/pushMessageList.js
View file @
8f7b8434
...
...
@@ -10,6 +10,7 @@ PushMessageList.baseApiUrl = COMMON.format(ClientData.conf_checkApiUrl(), Client
*/
PushMessageList
.
init
=
function
()
{
//Check if user is logged in
COMMON
.
showLoading
();
COMMON
.
checkAuth
(
false
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
();
...
...
abweb/js/reportForm/reportForm.js
View file @
8f7b8434
...
...
@@ -11,6 +11,7 @@ RF.addReportFlg;
* init
*/
RF
.
init
=
function
()
{
COMMON
.
showLoading
();
//Check if user is logged in
COMMON
.
checkAuth
(
false
);
COMMON
.
checkQuickReport
(
function
(
result
)
{
...
...
abweb/js/reportList/reportList.js
View file @
8f7b8434
...
...
@@ -14,21 +14,13 @@
RL
.
init
=
function
()
{
//Check if user is logged in
COMMON
.
showLoading
();
console
.
log
(
"kdh check closeLoading RL.init1"
);
COMMON
.
checkAuth
(
false
);
console
.
log
(
"kdh check closeLoading RL.init2"
);
console
.
log
(
'ReportList init start'
);
console
.
log
(
"kdh check closeLoading RL.init3"
);
COMMON
.
checkQuickReport
(
function
(
result
)
{
if
(
result
)
RL
.
isQuickReport
=
result
.
isQuickReport
;
}
);
console
.
log
(
"kdh check closeLoading RL.init4"
);
RL
.
loadCommon
();
console
.
log
(
"kdh check closeLoading RL.init5"
);
RL
.
initTaskReportList
();
console
.
log
(
"kdh check closeLoading RL.init6"
);
COMMON
.
closeLoading
();
console
.
log
(
"kdh check closeLoading RL.init7"
);
};
/**
...
...
@@ -75,33 +67,6 @@
}
/**
* check quick report
*/
// RL.checkQuickReport = function () {
// if (sessionStorage.getItem("operationId")) {
// let params = {};
// params.sid = COMMON.getSid();
// params.operationId = sessionStorage.getItem("operationId");
// let url = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.API.IS_QUICK_REPORT;
// COMMON.cmsAjax(
// url,
// params,
// false,
// function (result) {
// RL.isQuickReport = result.isQuickReport;
// },
// function () {
// COMMON.showAlert('msgOperationEmpty');
// COMMON.avwScreenMove('index.html');
// },
// );
// } else {
// COMMON.showAlert('error');
// COMMON.avwScreenMove('index.html');
// }
// };
/**
* init task report list
*/
RL
.
initTaskReportList
=
function
()
{
...
...
abweb/js/sendMessage/sendMessage.js
View file @
8f7b8434
...
...
@@ -125,6 +125,7 @@ SendMessage.templateSelectedCallback = function (template) {
* init data, action when screen onload
*/
SendMessage
.
init
=
function
()
{
COMMON
.
showLoading
();
//Check if user is logged in
COMMON
.
checkAuth
(
false
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
...
...
abweb/js/setting/settings.js
View file @
8f7b8434
...
...
@@ -7,6 +7,7 @@ var SETTINGS = {};
// Init function of page
$
(
document
).
ready
(
function
()
{
COMMON
.
showLoading
();
//Check if user is logged in
COMMON
.
checkAuth
(
false
);
SETTINGS
.
getToken
();
...
...
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