From: Chuck Scott Date: Fri, 28 Dec 2018 19:47:22 +0000 (-0500) Subject: Updated member map directions process and other fixes. X-Git-Tag: v2.11.0^2~24 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=45069f54ce8abeb02a8f49556efd9742393b4c11;p=WP-Plugins%2Fglm-member-db.git Updated member map directions process and other fixes. Updated what we send to Google Maps when providing driving directions to include user's current location. Added fix for problems with dialog box titles when Bootstrap is loaded. --- diff --git a/css/front.css b/css/front.css index 08c59041..766112b6 100644 --- a/css/front.css +++ b/css/front.css @@ -1323,8 +1323,8 @@ glm-member-detail-content-toggle { } .glm-weather-block-text { color: #333333; - margin: 0; - font-weight: bold; + margin: 0; + font-weight: bold; font-size: 15px; display: block; float: right; @@ -1334,3 +1334,8 @@ glm-member-detail-content-toggle { } /* City Weather End */ + +/* Fix for jQuery Dialog box title text invading box content area. Caused by Bootstrap. */ +.ui-dialog-titlebar { + line-height: 1em; +} diff --git a/js/front.js b/js/front.js index 129bf6ba..c1a8f8b8 100644 --- a/js/front.js +++ b/js/front.js @@ -1,9 +1 @@ - jQuery("#MemberDrivingDirectionsForm").submit(function(){ - var place = jQuery("#MemberLocation").val().replace( new RegExp( " ", "g" ), '+' ); - var lat = jQuery("#MemberLat").val(); - var lon = jQuery("#MemberLon").val(); - var url = "https://maps.google.com/maps?daddr=" + place + "%40" + lat + "," + lon; - window.open(url, '_blank'); - return false; - }); /* Nothing here yet */ \ No newline at end of file diff --git a/readme.txt b/readme.txt index c5587d84..50f25fd5 100755 --- a/readme.txt +++ b/readme.txt @@ -69,6 +69,8 @@ There is of course much more to this. = PENDING = * Now locking out other processes from database update on an Add-On when one process is doing the update. * Added parameter to glmMembersConfigArraySetup() in glmPluginSupport.php to use names for resulting array if needed. +* Updated what we send to Google Maps when providing driving directions to include user's current location. +* Added fix for problems with dialog box titles when Bootstrap is loaded. = 2.10.46 = * Moved session startup from adminHooks.php to index.php to ensure there's always a session started. diff --git a/views/front/members/detail.html b/views/front/members/detail.html index 9b7a36cb..b84b18ba 100755 --- a/views/front/members/detail.html +++ b/views/front/members/detail.html @@ -134,7 +134,7 @@ {if $settings.detail_show_map} - +
{if $settings.selected_map_interface == 1} @@ -147,18 +147,18 @@
(map loads here)
- {/if} + {/if}
view map
-
+
{/if} @@ -354,11 +354,109 @@ {apply_filters('glm-member-db-front-members-detail-pageBottom', '', $member.id)} +
+

+ We would like to lookup your present location so we can provide accurate directions. +

+ Your browser may ask for your permission to determine your location + (possibly at the top of this page). +

+ If you agree, we will use your current location as the starting point for + directions. If you don't agree, you may enter a starting location when the map is displayed. +

+
+