1 2if(window.jQuery) { 3 $(document).ready(function(){ 4 $("body").on('click', '.header-change-city .open-cities-modal', function (event) { 5 event.preventDefault(); 6 $(".cities-modal").toggleClass('open'); 7 return false; 8 }); 9 10 $("body").on('click', '.header-change-city .open-cities-modal-accept', function (event) { 11 event.preventDefault(); 12 $(".header-change-city .accept-modal").removeClass('open'); 13 $(".header-change-city .cities-modal").addClass('open'); 14 return false; 15 }); 16 17 $("body").on('click', '.header-change-city .close-accept-modal', function () { 18 $(".header-change-city .accept-modal").removeClass('open'); 19 }); 20 21 $("body").on('click', '.header-change-city .set-cookie', function () { 22 $.ajax({ 23 url: BX.message('CURRENT_PAGE') + '?city-select=Y' 24 }); 25 }); 26 27 28 $(document).click(function(event) { 29 if ($(event.target).closest(".header-change-city .cities-modal").length) return; 30 31 $(".header-change-city .cities-modal").removeClass('open'); 32 event.stopPropagation(); 33 }); 34 }); 35 36 37}
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.