1import { Controller } from '@hotwired/stimulus'; 2 3export default class extends Controller { 4 static targets = ['errorMessage']; 5 6 connect() { 7 this.loadDateRangePicker(); 8 } 9 10 loadDateRangePicker() { 11 $('#schedule_range_picker').daterangepicker({ 12 minDate: new Date(), 13 autoUpdateInput: false, 14 timePicker: true, 15 singleDatePicker: true, 16 }); 17 18 $('#schedule_range_picker').on('apply.daterangepicker', function (ev, picker) { 19 $(this).val(picker.startDate.format('DD/MM/YYYY | HH:MM')); 20 document.getElementById('push_notification_scheduled').value = picker.startDate; 21 }); 22 } 23 24 formResponse(event) { 25 let [data, status, xhr] = event.detail; 26 if (xhr.response.includes('error')) { 27 this.errorMessageTarget.classList.remove('d-none'); 28 } 29 } 30};
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.