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).parent().children('.booknetic_card_selected').removeClass('booknetic_card_selected'); 11 $(this).addClass('booknetic_card_selected'); 12 13 booknetic.stepManager.goForward(); 14 }); 15 16 }); 17 18 bookneticHooks.addAction('before_step_loading', function( booknetic, new_step_id, old_step_id ) 19 { 20 if( new_step_id !== 'location' ) 21 return; 22 23 booknetic.stepManager.loadStandartSteps( new_step_id, old_step_id ); 24 }); 25 26 bookneticHooks.addFilter('step_validation_location' , function ( result , booknetic ) 27 { 28 if( !( booknetic.getSelected.location() > 0 ) ) 29 { 30 return { 31 status: false, 32 errorMsg: booknetic.__('select_location') 33 }; 34 } 35 36 return result 37 }); 38 39})(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.