1(function ($) { 2 window.booklyCustomerProfile = function (options) { 3 $('.bookly-js-show-past', $('.' + options.container)).on('click', function (e) { 4 e.preventDefault(); 5 var $self = $(this), 6 $table = $self.prevAll('table.bookly-appointments-table'), 7 ladda = Ladda.create(this); 8 ladda.start(); 9 $.get(options.ajaxurl, { 10 action: 'bookly_pro_get_past_appointments', 11 csrf_token: BooklyCustomerProfileL10n.csrf_token, 12 columns: $table.data('bookly_columns'), 13 custom_fields: $table.data('custom_fields'), 14 page: $table.data('page') + 1 15 }, function () { 16 }, 'json').done(function (resp) { 17 ladda.stop(); 18 if (resp.data.more) { 19 $self.find('span.bookly-label').html(BooklyCustomerProfileL10n.show_more); 20 } else { 21 $self.remove(); 22 } 23 if (resp.data.html) { 24 $table.find('tr.bookly--no-appointments').remove(); 25 $(resp.data.html).hide().appendTo($table).show('slow'); 26 $table.data('page', $table.data('page') + 1); 27 } 28 }); 29 }); 30 }; 31})(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.