1(function($) 2{ 3 4 bookneticHooks.addAction('booking_panel_loaded', function ( booknetic ) 5 { 6 let booking_panel_js = booknetic.panel_js; 7 8 booking_panel_js.on('click', '.booknetic_card', function() 9 { 10 $(this).closest('.booknetic_card_container').find('.booknetic_card_selected').removeClass('booknetic_card_selected'); 11 $(this).addClass('booknetic_card_selected'); 12 13 booknetic.stepManager.goForward(); 14 }); 15 }); 16 17 bookneticHooks.addAction('before_step_loading', function( booknetic, new_step_id, old_step_id ) 18 { 19 if( new_step_id !== 'location' ) 20 return; 21 22 booknetic.stepManager.loadStandartSteps( new_step_id, old_step_id ); 23 }); 24 25 bookneticHooks.addAction('loaded_step', function( booknetic, new_step_id ) 26 { 27 if( new_step_id !== 'location' ) 28 return; 29 30 booknetic.panel_js.find(".booknetic_card_container .booknetic_category_accordion[data-accordion='on']").each(function() { 31 $(this).find('>div').not(':first-child').addClass('booknetic_category_accordion_hidden'); 32 $(this).attr('data-accordion', 'off'); 33 }); 34 }); 35 36 bookneticHooks.addFilter('step_validation_location' , function ( result , booknetic ) 37 { 38 if( !( booknetic.getSelected.location() > 0 ) ) 39 { 40 return { 41 status: false, 42 errorMsg: booknetic.__('select_location') 43 }; 44 } 45 46 return result 47 }); 48 49})(jQuery);
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.