Lines Matching refs:dropdown
2454 const dropdown = document.getElementById('event-namespace-dropdown-' + calId);
2457 if (!searchInput || !hiddenInput || !dropdown || !dataElement) {
2505 dropdown.innerHTML = '';
2509 dropdown.style.display = 'none';
2518 dropdown.appendChild(defaultOption);
2525 dropdown.appendChild(option);
2528 dropdown.style.display = 'block';
2532 dropdown.style.display = 'none';
2557 const options = dropdown.querySelectorAll('.namespace-option');
2589 dropdown.addEventListener('mousedown', function(e) {
2681 const dropdown = document.getElementById(dropdownId);
2683 if (!btn || !dropdown) return;
2697 if (dropdown.classList.contains('open')) {
2698 dropdown.classList.remove('open');
2700 dropdown.innerHTML = '';
2715 dropdown.innerHTML = buildTimeDropdown(calId, isEndTime, startTime, isMultiDay);
2716 dropdown.classList.add('open');
2726 const selected = dropdown.querySelector('[data-value="' + currentValue + '"]');
2733 … const firstAvailable = dropdown.querySelector('.time-option:not(.disabled):not([data-value=""])');
2748 const dropdown = document.getElementById(dropdownId);
2766 if (dropdown) {
2767 dropdown.classList.remove('open');
2768 dropdown.innerHTML = '';
2856 const dropdown = document.getElementById('end-time-dropdown-' + calId);
2857 if (dropdown && dropdown.classList.contains('open')) {
2858 dropdown.classList.remove('open');
2859 dropdown.innerHTML = '';
2867 const dropdown = document.getElementById('end-time-dropdown-' + calId);
2868 if (dropdown && dropdown.classList.contains('open')) {
2869 dropdown.classList.remove('open');
2870 dropdown.innerHTML = '';
3046 const dropdown = document.getElementById(dropdownId);
3048 if (!btn || !dropdown) return;
3062 if (dropdown.classList.contains('open')) {
3063 dropdown.classList.remove('open');
3065 dropdown.innerHTML = '';
3100 dropdown.dataset.year = year;
3101 dropdown.dataset.month = month;
3102 dropdown.dataset.isEnd = isEndDate ? '1' : '0';
3103 dropdown.dataset.calId = calId;
3106 dropdown.innerHTML = buildDateCalendar(calId, isEndDate, year, month, selectedDate, minDate);
3107 dropdown.classList.add('open');
3119 const dropdown = document.getElementById(dropdownId);
3133 if (dropdown) {
3134 dropdown.classList.remove('open');
3135 dropdown.innerHTML = '';
3140 window.navigateDatePicker = function(dropdown, direction) { argument
3141 let year = parseInt(dropdown.dataset.year);
3142 let month = parseInt(dropdown.dataset.month);
3143 const isEndDate = dropdown.dataset.isEnd === '1';
3144 const calId = dropdown.dataset.calId;
3150 dropdown.dataset.year = year;
3151 dropdown.dataset.month = month;
3163 dropdown.innerHTML = buildDateCalendar(calId, isEndDate, year, month, selectedDate, minDate);
3194 [startDropdown, endDropdown].forEach((dropdown, idx) => {
3195 if (!dropdown) return;
3198 dropdown.addEventListener('click', function(e) {
3204 navigateDatePicker(dropdown, direction);