1import { Controller } from "@hotwired/stimulus" 2 3// An end time needs an end date. When staff enter an end time without one, 4// assume the event ends on the day it starts, and keep that date in step 5// with the start date until staff pick a different end date. 6export default class extends Controller { 7 static targets = ["startDate", "endDate", "endTime"] 8 9 fill() { 10 const endDate = this.endDateTarget 11 if (endDate.value !== "" && endDate.value !== this.filledDate) return 12 13 endDate.value = this.endTimeTarget.value === "" ? "" : this.startDateTarget.value 14 this.filledDate = endDate.value 15 } 16}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.