PageSourceSearch

https://www.southormsbyestate.co.uk/wp-content/plugins/gAppointments/assets/schedule.js?ver=1.2.6

js southormsbyestate.co.uk collected 2026-09-29 03:29:50 UTC 3,262 bytes, 96 lines download raw bytes

1jQuery(document).on('focus',".ga-date-picker", function() {
2	jQuery(this).datepicker({ "dateFormat" : 'yy-mm-d', "showAnim": 'slideDown', });
3});	
4
5jQuery( document ).ready(function() {	
6	jQuery(document).on("submit", "form#provider-schedule-update", function(e) {
7		e.preventDefault();
8		var modal_wrapper = jQuery(this);	
9		modal_wrapper.parent('.ga_modal_container').find('.modal_overlay').show();	
10		var data = jQuery("form#provider-schedule-update").serialize();
11		
12		jQuery.post(ga_calendar_schedule_obj.ajax_url, data, function(response) {
13			if ( typeof response !== 'undefined' ) {			
14				modal_wrapper.parent('.ga_modal_container').find('.modal_overlay').hide();
15				
16				if( response.success == true ) {
17	                jQuery("form#provider-schedule-update").html(response.data['html']);
18				}		
19	            jQuery("form#provider-schedule-update .ajax-response").html(response.data['message']);
20			}	
21		}).fail(function() {
22			jQuery("form#provider-schedule-update .ajax-response").html('<div class="ga_alert ga_alert_danger">Error sending form!</div>');
23		});	
24	});		
25	
26	
27	/**
28	 * ADD NEW BREAK SLOT
29	 */		
30	jQuery('body').on('click', '.schedule_day .schedule_day_container .ga_add_break', function() {
31        var cloned = jQuery(this).parent('.schedule_day_container').find('.schedule_week_breaks .break_time').first().clone().removeAttr( 'style' );
32		jQuery(this).parent('.schedule_day_container').find('.schedule_week_breaks').append( cloned );	
33    });		
34	
35	
36	/**
37	 * REMOVE BREAK SLOT
38	 */	   
39	jQuery('body').on('click', '.break_time .break-delete', function() {
40        jQuery(this).parent('.break_time').fadeOut(150, function() {
41			jQuery(this).remove();
42		}); 
43    });		
44	
45	
46	/**
47	 * ADD NEW HOLIDAY
48	 */		
49	jQuery('body').on('click', '.provider_holidays .ga_add_holiday', function() {
50        var cloned = jQuery(this).parent('.provider_holidays').find('#provider_holidays .holiday').first().clone().removeAttr( 'style' );
51		jQuery(this).parent('.provider_holidays').find('#provider_holidays').append( cloned );
52    });		
53	
54
55	/**
56	 * REMOVE HOLIDAY
57	 */	   
58	jQuery('body').on('click', '#provider_holidays .holiday .holiday-delete', function() {
59        jQuery(this).parent('.holiday').fadeOut(150, function() {
60			jQuery(this).remove();
61		}); 
62    });	
63	
64	/**
65	 * Show Modal
66	 */		
67	jQuery('body').on('click', '#provider-schedule .ga-manage-schedule', function(e) {
68		e.preventDefault();	
69		jQuery('html, body').addClass('ga_modal_open');
70		jQuery('#ga_schedule_model').removeClass('ga-hidden');
71	});	
72	
73	/**
74	 * Manage Schedule
75	 */		
76	jQuery('body').on('click', '#ga_schedule_tabs span', function() {
77		var section_id = jQuery(this).attr('section_go');
78		jQuery('#ga_schedule_tabs span').removeClass('active');
79		jQuery(this).addClass('active');
80		jQuery('#ga_schedule_content .ga_schedule_content').addClass('ga-hidden');
81		jQuery('#' + section_id).removeClass('ga-hidden');
82    });		
83	
84	/**
85	 * Hide Modal
86	 */		
87	jQuery('body').on('click', '#ga_schedule_model .ga_modal_wrapper .ga_close', function(e) {
88		e.preventDefault();	
89		jQuery(this).parents('#ga_schedule_model').fadeIn(300, function() {
90			jQuery(this).addClass('ga-hidden');
91			jQuery('html, body').removeClass('ga_modal_open');
92		});	
93		
94	});		
95	
96}); // end doc ready

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.