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
140d01a5
Commit
140d01a5
authored
Oct 26, 2022
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ログインJS修正、プログレスバー表示追加
parent
17d151f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
+26
-3
abvw/common/js/common.js
+11
-0
abvw/html/login.html
+5
-0
abvw/js/login/login.js
+10
-3
No files found.
abvw/common/js/common.js
View file @
140d01a5
...
@@ -1304,3 +1304,13 @@ COMMON.callCmsApi = function (url, accountPath, apiName, type, params, async, su
...
@@ -1304,3 +1304,13 @@ COMMON.callCmsApi = function (url, accountPath, apiName, type, params, async, su
},
},
});
});
};
};
// Function to set position of object to center
jQuery
.
fn
.
center
=
function
()
{
this
.
css
(
"position"
,
"fixed"
);
this
.
css
(
"top"
,
((
$
(
window
).
height
()
-
this
.
height
())
/
2
)
+
"px"
);
this
.
css
(
"left"
,
((
$
(
window
).
width
()
-
this
.
width
())
/
2
)
+
"px"
);
return
this
;
};
\ No newline at end of file
abvw/html/login.html
View file @
140d01a5
...
@@ -79,6 +79,11 @@
...
@@ -79,6 +79,11 @@
</article>
</article>
</div>
</div>
</div>
</div>
<!--ローディング-->
<div
id=
"check_loading"
style=
"display:none; position: relative; overflow:hidden;"
>
<p
id=
"checkLoadingMessage"
></p>
<div
id=
"checkLoadingImage"
><img
src=
'########'
/></div>
</div>
<footer>
<footer>
<div
class=
"border"
>
<div
class=
"border"
>
<div
class=
"cnt_footer"
>
<div
class=
"cnt_footer"
>
...
...
abvw/js/login/login.js
View file @
140d01a5
...
@@ -178,7 +178,7 @@ LOGIN.processLogin = function() {
...
@@ -178,7 +178,7 @@ LOGIN.processLogin = function() {
console
.
log
(
"data.requirePasswordChange:"
+
data
.
requirePasswordChange
);
console
.
log
(
"data.requirePasswordChange:"
+
data
.
requirePasswordChange
);
console
.
log
(
"ClientData.serviceOpt_abook_check:"
+
ClientData
.
serviceOpt_abook_check
());
console
.
log
(
"ClientData.serviceOpt_abook_check:"
+
ClientData
.
serviceOpt_abook_check
());
COMMON
.
closeLoading
();
if
(
data
.
requirePasswordChange
==
0
)
{
if
(
data
.
requirePasswordChange
==
0
)
{
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
...
@@ -269,6 +269,7 @@ LOGIN.processLogin = function() {
...
@@ -269,6 +269,7 @@ LOGIN.processLogin = function() {
}
}
}
}
}
else
{
}
else
{
COMMON
.
closeLoading
();
LOGIN
.
login_errorMessage
=
data
.
errorMessage
;
LOGIN
.
login_errorMessage
=
data
.
errorMessage
;
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
data
.
errorMessage
).
toString
());
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
data
.
errorMessage
).
toString
());
$
(
'#main-error-message'
).
show
();
$
(
'#main-error-message'
).
show
();
...
@@ -277,6 +278,7 @@ LOGIN.processLogin = function() {
...
@@ -277,6 +278,7 @@ LOGIN.processLogin = function() {
},
function
(
xhr
,
statusText
,
errorThrown
)
{
},
function
(
xhr
,
statusText
,
errorThrown
)
{
LOGIN
.
login_error_flag
=
true
;
LOGIN
.
login_error_flag
=
true
;
COMMON
.
closeLoading
();
if
(
xhr
.
responseText
&&
xhr
.
status
!=
0
)
{
if
(
xhr
.
responseText
&&
xhr
.
status
!=
0
)
{
LOGIN
.
login_errorMessage
=
JSON
.
parse
(
xhr
.
responseText
).
errorMessage
;
LOGIN
.
login_errorMessage
=
JSON
.
parse
(
xhr
.
responseText
).
errorMessage
;
...
@@ -304,7 +306,7 @@ LOGIN.changePasswordProcess = function() {
...
@@ -304,7 +306,7 @@ LOGIN.changePasswordProcess = function() {
appId
:
4
appId
:
4
};
};
AVWEB
.
avwCmsApiSync
(
accountPath
,
'passwordChange'
,
'GET'
,
params
,
function
(
data
)
{
COMMON
.
callCmsApi
(
accountPath
,
'passwordChange'
,
'GET'
,
params
,
false
,
function
(
data
)
{
var
result
=
data
.
result
;
var
result
=
data
.
result
;
if
(
result
==
'success'
)
{
if
(
result
==
'success'
)
{
$
(
'#dialog-error-message'
).
css
(
'display'
,
'none'
);
$
(
'#dialog-error-message'
).
css
(
'display'
,
'none'
);
...
@@ -363,8 +365,11 @@ LOGIN.changeLanguageEn = function() {
...
@@ -363,8 +365,11 @@ LOGIN.changeLanguageEn = function() {
// Login click function
// Login click function
LOGIN
.
loginFunction
=
function
()
{
LOGIN
.
loginFunction
=
function
()
{
COMMON
.
showLoading
();
if
(
LOGIN
.
checkValidation
())
{
if
(
LOGIN
.
checkValidation
())
{
LOGIN
.
processLogin
();
LOGIN
.
processLogin
();
}
else
{
COMMON
.
closeLoading
();
}
}
};
};
...
@@ -397,12 +402,14 @@ LOGIN.OpenChangePasswordDialog = function() {
...
@@ -397,12 +402,14 @@ LOGIN.OpenChangePasswordDialog = function() {
// Clear all input values
// Clear all input values
$
(
"#main-password-change"
).
show
();
$
(
"#main-password-change"
).
show
();
$
(
"#main-password-change"
).
center
();
$
(
"#main-password-change"
).
center
();
COMMON
.
lockLayout
();
COMMON
.
showLoading
();
console
.
log
(
"password open"
);
};
};
// Close Chnage Password Dialog
// Close Chnage Password Dialog
LOGIN
.
CloseChangePasswordDialog
=
function
()
{
LOGIN
.
CloseChangePasswordDialog
=
function
()
{
$
(
"#main-password-change"
).
hide
();
$
(
"#main-password-change"
).
hide
();
COMMON
.
closeLoading
();
};
};
// Save Service Option
// Save Service Option
...
...
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