Skip to content
Snippets Groups Projects
Commit 3a2f8cd6 authored by Ye Tian's avatar Ye Tian
Browse files

Empty time process on award admin

parent 04411fed
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,9 @@ function editAwards(){
var n = names.length;
var count = 0;
for(i=0; i<n; i++){
if(times[i].value==null || times[i].value.length==0){
times[i].value = "9999-12-31";
}
$.ajax({
type: 'get',
url: 'AwardsServlet',
......@@ -132,6 +135,9 @@ function addAward(){
var name = $("#awardName").val();
var description = $("#description").val();
var time = $("#time").val();
if(time==null || time.length==0){
time = "9999-12-31";
}
$.ajax({
type: 'get',
url: 'AwardsServlet',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment