Release
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 25 Aug 2017 14:37:46 +0000 (10:37 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 25 Aug 2017 14:37:46 +0000 (10:37 -0400)
Fix for member photo upload with location turned off.

index.php
readme.txt
views/admin/member/memberInfo.html

index c8c0c8a..dbfde6f 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 2.10.8
+ * Version: 2.10.9
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersDatabase
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.10.8
+ * @version 2.10.9
  */
 
 // Check that we're being called by WordPress.
@@ -44,7 +44,7 @@ if (!defined('ABSPATH')) {
  *
  */
 
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.8');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.9');
 define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.32');
 
 // Check if plugin version is not current in WordPress option and if needed updated it
index 9f531c1..d2952b4 100644 (file)
@@ -66,6 +66,10 @@ There is of course much more to this.
 (none)
 
 == Changelog ==
+= 2.10.9 =
+* Fix issue where the code for google map was being called when locations for
+  members were turned off.
+
 = 2.10.8 =
 * Fixing map issues when loading the map in member edit info page.
 * Fixing undefined references in "File Download" area.
index 58be0ac..0c1d6ee 100644 (file)
@@ -1,6 +1,5 @@
 {include file='admin/member/header.html'}
 
-
     <script src="//maps.googleapis.com/maps/api/js?&key={$settings.google_maps_api_key}"></script>
     <script type="text/javascript">var enableDraggable = true;</script>
 
             /*
              * Map Display Toggle
              */
-/*             
+/*
             $("#locationMapToggle").click(function() {
                 var mapC = "#locationMapContainer";
                 var map = "#locationMap";
                     // Assign it to the lat/lon fields for submission
                     $('#glmLat').val(glmLat.toFixed(6));
                     $('#glmLng').val(glmLng.toFixed(6));
-                    
+
                     glmPageUpdateRequired();
 
                 });
             checkLiveCamType();
 
             // Initialize map on load
+            {if $settings.memb_info_location}
             initMap();
+            {/if}
 
         });
     </script>