Simplified JS

This commit is contained in:
Raphaël Doursenaud
2013-09-05 16:37:23 +02:00
parent 7229b728a3
commit 109cc09e82
2 changed files with 10 additions and 17 deletions

View File

@@ -190,9 +190,8 @@ function dpClickDay(year,month,day,format)
closeDPBox();
}
function dpHighlightDay(year,month,day,tradMonths){
function dpHighlightDay(year,month,day,months){
var displayinfo=getObjectFromID("dpExp");
var months = tradMonths;
displayinfo.innerHTML=months[month-1]+" "+day+", "+year;
}
@@ -478,9 +477,7 @@ function getDateFromFormat(val,format)
if (seconde==null||(seconde<0)||(seconde>60)) { return 0; }
// alert(year+' '+month+' '+day+' '+hour+' '+minute+' '+seconde);
var newdate=new Date(year,month-1,day,hour,minute,seconde);
return newdate;
return new Date(year,month-1,day,hour,minute,seconde);
}
/*
@@ -588,8 +585,7 @@ function cleanSerialize(expr) {
var reg = new RegExp("(&)", "g");
var reg2 = new RegExp("[^A-Z0-9,]", "g");
var liste1 = expr.replace(reg, ",");
var liste = liste1.replace(reg2, "");
return liste;
return liste = liste1.replace(reg2, "");
}