diff options
Diffstat (limited to 'plugins/jetpack/modules/widgets/contact-info/contact-info-admin.js')
-rw-r--r-- | plugins/jetpack/modules/widgets/contact-info/contact-info-admin.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/jetpack/modules/widgets/contact-info/contact-info-admin.js b/plugins/jetpack/modules/widgets/contact-info/contact-info-admin.js index 9d3d9d46..ee0c9b55 100644 --- a/plugins/jetpack/modules/widgets/contact-info/contact-info-admin.js +++ b/plugins/jetpack/modules/widgets/contact-info/contact-info-admin.js @@ -1,17 +1,14 @@ /* global ajaxurl, contact_info_api_key_ajax_obj */ -( function( $ ) { - $( document ).on( 'change', '.jp-contact-info-showmap', function() { +( function ( $ ) { + $( document ).on( 'change', '.jp-contact-info-showmap', function () { var $checkbox = $( this ), isChecked = $checkbox.is( ':checked' ); - $checkbox - .closest( '.widget' ) - .find( '.jp-contact-info-admin-map' ) - .toggle( isChecked ); + $checkbox.closest( '.widget' ).find( '.jp-contact-info-admin-map' ).toggle( isChecked ); } ); - $( document ).on( 'widget-synced', function( event, widgetContainer ) { + $( document ).on( 'widget-synced', function ( event, widgetContainer ) { // This event fires for all widgets, so restrict this to Contact Info widgets and the API key input. if ( ! widgetContainer.is( '[id*="widget_contact_info"]' ) || @@ -31,7 +28,7 @@ action: 'customize-contact-info-api-key', apikey: $apikey_input.val(), }, - function( data ) { + function ( data ) { var $map_element = $apikey_input .closest( '.jp-contact-info-admin-map' ) .parent() |