1function showPopupElement(selector){ 2 $(selector).css("display", "flex"); 3 $(selector + " > .modal").fadeIn("slow"); 4 $(selector).fadeIn(); 5 $("body").addClass("modal-open"); 6} 7 8function closePopup(selector) { 9 10 let modal = $(selector).find(".modal") 11 modal.hide(); 12 $(selector).hide(); 13 if ($(selector).hasClass("delete-on-close")) { 14 modal.empty(); 15 } 16 let modalBackdrop = $('.modal-backdrop:visible'); 17 if(modalBackdrop.length == 0) { 18 $("body").removeClass("modal-open") 19 } 20} 21 22$(document).on("click", ".card.selectionMode", function(e) { 23 e.preventDefault(); 24 if (e.target.closest(".form-check-input") == null) { 25 let t = $(this); 26 t.find(".form-check-input").click(); 27 } 28}); 29$(document).click(function() { 30 $('.payment-dropdown-menu.show').removeClass('show'); 31}); 32 33$(document).on('click', '.payment-dropdown-trigger', function(e){ 34 35 e.stopPropagation(); 36 $(this).closest('.payment-dropdown-wrapper').find('.payment-dropdown-menu').toggleClass('show'); 37}); 38
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.