Skip to content

Commit

Permalink
only use new calendar for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mart2070 committed Aug 7, 2024
1 parent 6ded055 commit 23e268d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tdx-enhanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@
let header = document.getElementById("thTicket_spnTitle") || document.querySelector("#upTaskHeader>h1")

//find calendar inputs when editing tickets/tasks
let calendars = document.querySelectorAll("input.hasDatepicker")
//let calendars = document.querySelectorAll("input.hasDatepicker")
let calendars = document.querySelectorAll("#txtStartDate, #txtEndDate") //tasks for now, will add more as found
if (calendars) {
let originalFormat = "M/D/YYYY h:mm A";
let newFormat = "YYYY-MM-DDThh:mm";
Expand Down

0 comments on commit 23e268d

Please sign in to comment.