PageSourceSearch

https://muaythaiontario.org/wp-content/plugins/woocommerce-photogr…/js/frontend/my-collections.js?ver=1.0.18

js muaythaiontario.org collected 2026-10-04 05:24:00 UTC 1,301 bytes, 42 lines download raw bytes

1/*global WCPhotographyMyCollectionsParams */
2/*jshint devel: true */
3( function( $ ) {
4
5	$( function() {
6		$( 'body' )
7			.on( 'change', '.my-account-collections .collection-visibility select', function() {
8				$( this ).closest( 'td' ).find( '.button' ).removeAttr( 'disabled' ).removeClass( 'disabled' );
9			})
10			.on( 'click', '.my-account-collections .collection-visibility .button', function() {
11				var button = $( this ),
12					wrap   = button.closest( 'td' ),
13					select = $( 'select', wrap );
14
15				select.attr( 'disabled', 'disabled' );
16				button.addClass( 'loading' );
17
18				$.ajax({
19					url:      WCPhotographyMyCollectionsParams.ajax_url,
20					data:     {
21						action:        'wc_photography_my_account_edit_visibility',
22						security:      WCPhotographyMyCollectionsParams.security,
23						collection_id: $( this ).attr( 'data-collection_id' ),
24						customer:      WCPhotographyMyCollectionsParams.customer,
25						visibility:    select.val()
26					},
27					type:     'POST',
28					dataType: 'json',
29					success:  function( response ) {
30						if ( response.success ) {
31							select.removeAttr( 'disabled' );
32							button.removeClass( 'loading' ).addClass( 'disabled' );
33							button.attr( 'disabled', 'disabled' );
34						}
35					}
36				});
37
38				return false;
39			});
40	});
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.