1(function ($) { 2 window.booklyStaffAdvanced = function (Options) { 3 var $container = $('.' + Options.form_id); 4 if (!$container.length) { 5 return; 6 } 7 var options = { 8 get_staff_advanced: { 9 action: 'bookly_staff_cabinet_get_advanced', 10 staff_id: Options.staff_id, 11 layout: Options.layout, 12 }, 13 booklyAlert: function (alerts) { 14 $.each(alerts, function (type, messages) { 15 if(messages.length > 0){ 16 window.booklyNativeAlert(messages.join('\n')); 17 } 18 }); 19 }, 20 validation: function (has_error, info) { 21 $('#bookly-advanced-save', $container).prop('disabled', has_error); 22 let $error = $('.bookly-js-advanced-error',$container); 23 if (has_error) { 24 $error.html(info); 25 } else { 26 $error.html(''); 27 } 28 }, 29 l10n: BooklySCAdvancedL10n, 30 saving: function (alerts) { 31 $.each(alerts, function (type, messages) { 32 if(messages.length > 0){ 33 window.booklyNativeAlert(messages.join('\n')); 34 } 35 }); 36 } 37 }; 38 39 // Init Staff Advanced. 40 new BooklyStaffAdvanced($container, options); 41 }; 42})(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.