forked from v4l3n71n/covas-bo
default date
This commit is contained in:
parent
6149a8683d
commit
d39dddf60d
@ -3,6 +3,11 @@ signOut();
|
|||||||
closeButton();
|
closeButton();
|
||||||
pathURL = document.location.pathname.split("/")[document.location.pathname.split("/").length-1].split(".")[0].replace("add","")
|
pathURL = document.location.pathname.split("/")[document.location.pathname.split("/").length-1].split(".")[0].replace("add","")
|
||||||
|
|
||||||
|
if (pathURL == "event"){
|
||||||
|
lastdate = new Date();
|
||||||
|
document.getElementById("start_dateUpdateInput").value=lastdate.getFullYear()+"-"+lastdate.getMonth()+"-"+lastdate.getDate()+"T00:00";
|
||||||
|
document.getElementById("end_dateUpdateInput").value=lastdate.getFullYear()+"-"+lastdate.getMonth()+"-"+lastdate.getDate()+"T06:00";
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementById("addUser").addEventListener("click", function(){
|
document.getElementById("addUser").addEventListener("click", function(){
|
||||||
switch (pathURL){
|
switch (pathURL){
|
||||||
@ -11,6 +16,7 @@ document.getElementById("addUser").addEventListener("click", function(){
|
|||||||
break;
|
break;
|
||||||
case "event":
|
case "event":
|
||||||
var updateProfil = ["name", "place", "start_date", "end_date"];
|
var updateProfil = ["name", "place", "start_date", "end_date"];
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
var updateProfil = []
|
var updateProfil = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user