Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LaMartin-Webomagic
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Pratik Shrivastava
LaMartin-Webomagic
Commits
3c42563d
Commit
3c42563d
authored
Jan 30, 2025
by
Deep Dey
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'master'
chore: remove DOB validation See merge request
deepdey/lamartin-webomagic!9
parents
7a09bf6e
8c4441aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
lamartinDashboard/js/admission_portal.js
lamartinDashboard/js/admission_portal.js
+12
-12
No files found.
lamartinDashboard/js/admission_portal.js
View file @
3c42563d
...
@@ -33,21 +33,21 @@ $(document).ready(function () {
...
@@ -33,21 +33,21 @@ $(document).ready(function () {
}
}
})
})
//TODO: depending on class it will set the min and max date
//
//
TODO: depending on class it will set the min and max date
$
(
'
#dateOfBirth
'
).
click
(
function
()
{
//
$('#dateOfBirth').click(function () {
var
currentDate
=
new
Date
();
//
var currentDate = new Date();
var
currentYear
=
currentDate
.
getFullYear
();
//
var currentYear = currentDate.getFullYear();
var
upperLimitDate
=
new
Date
(
currentYear
-
1
,
0
,
1
);
//
var upperLimitDate = new Date(currentYear - 1, 0, 1);
var
lowerLimitDate
=
new
Date
(
currentYear
-
2
,
0
,
2
);
//
var lowerLimitDate = new Date(currentYear - 2, 0, 2);
// Format the dates as YYYY-MM-DD strings
//
// Format the dates as YYYY-MM-DD strings
var
upperLimitDateString
=
upperLimitDate
.
toISOString
().
split
(
'
T
'
)[
0
];
//
var upperLimitDateString = upperLimitDate.toISOString().split('T')[0];
var
lowerLimitDateString
=
lowerLimitDate
.
toISOString
().
split
(
'
T
'
)[
0
];
//
var lowerLimitDateString = lowerLimitDate.toISOString().split('T')[0];
$
(
'
#dateOfBirth
'
).
attr
(
'
max
'
,
upperLimitDateString
);
//
$('#dateOfBirth').attr('max', upperLimitDateString);
$
(
'
#dateOfBirth
'
).
attr
(
'
min
'
,
lowerLimitDateString
);
//
$('#dateOfBirth').attr('min', lowerLimitDateString);
});
//
});
$
(
'
#category
'
).
on
(
'
change
'
,
function
()
{
$
(
'
#category
'
).
on
(
'
change
'
,
function
()
{
if
(
$
(
this
).
val
()
===
'
Staff Child
'
)
{
if
(
$
(
this
).
val
()
===
'
Staff Child
'
)
{
...
...
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