summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/widgets/contact-info')
-rw-r--r--plugins/jetpack/modules/widgets/contact-info/contact-info-admin.js13
-rw-r--r--plugins/jetpack/modules/widgets/contact-info/contact-info-map.css4
2 files changed, 7 insertions, 10 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()
diff --git a/plugins/jetpack/modules/widgets/contact-info/contact-info-map.css b/plugins/jetpack/modules/widgets/contact-info/contact-info-map.css
index b64d2caa..0d2c3f4a 100644
--- a/plugins/jetpack/modules/widgets/contact-info/contact-info-map.css
+++ b/plugins/jetpack/modules/widgets/contact-info/contact-info-map.css
@@ -4,10 +4,10 @@
}
.contact-map-api-error {
- border-left-color: #ffb900;
+ border-left-color: #dba617;
border-left-style: solid;
border-left-width: 4px;
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
margin: 5px 0 15px;
padding: 1px 12px;
-} \ No newline at end of file
+}