Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
ebc0974d
Commit
ebc0974d
authored
Aug 11, 2017
by
chenith
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated - HT017 - Enable login until email address _and_ password have been entered.
parent
eddf3069
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
sign_in.jsp
cmsWebApp/webroot/extensions/adminportal/sign_in.jsp
+35
-2
No files found.
cmsWebApp/webroot/extensions/adminportal/sign_in.jsp
View file @
ebc0974d
...
...
@@ -17,7 +17,40 @@
</head>
<body
class=
"bg-color"
>
<script
type=
"text/javascript"
>
var
interval
;
$
(
document
).
ready
(
function
()
{
validate
();
$
(
'input'
).
on
(
'change keyup'
,
function
()
{
validate
()
});
interval
=
setInterval
(
function
()
{
validate
();
},
500
);
});
function
validate
()
{
var
empty
=
false
;
$
(
'input[required]'
).
each
(
function
()
{
if
(
$
(
this
).
val
()
==
''
)
{
empty
=
true
;
if
(
$
(
this
).
css
(
'background-color'
)
==
'rgb(250, 255, 189)'
)
{
empty
=
false
;
}
}
});
if
(
empty
)
{
$
(
'.login-btn'
).
attr
(
'disabled'
,
'disabled'
);
}
else
{
$
(
'.login-btn'
).
removeAttr
(
'disabled'
);
clearInterval
(
interval
);
}
}
</script>
<style>
button
[
disabled
]
{
opacity
:
0.6
;
background-color
:
#0582ba
;
}
</style>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"main-verify-identity"
>
...
...
@@ -28,11 +61,11 @@
<div
class=
"form-group text-left"
>
<label>
Email Address
</label>
<input
type=
"text"
class=
"form-control"
name=
"username"
>
<input
type=
"text"
class=
"form-control"
name=
"username"
required
>
</div>
<div
class=
"form-group text-left"
>
<label>
Password
</label>
<input
type=
"password"
class=
"form-control"
name=
"password"
>
<input
type=
"password"
class=
"form-control"
name=
"password"
required
>
</div>
<div
class=
"form-group"
>
...
...
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