Fix an issue where the google map info id may be incorrect.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 12 Jun 2017 16:35:25 +0000 (12:35 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 12 Jun 2017 16:35:25 +0000 (12:35 -0400)
Id used in markup and the javascript code synced so they use the same
id. Both now using the m.id in the view template.

index.php
readme.txt
views/front/members/list.html

index 10f4a7d..6597d16 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.9.17
+ * Version: 2.9.18
  * 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.9.16
+ * @version 2.9.18
  */
 
 /*
@@ -38,7 +38,7 @@
  *
  */
 
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.9.17');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.9.18');
 define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.31');
 
 // Check if plugin version is not current in WordPress option and if needed updated it
index a3c9a43..088bb38 100644 (file)
@@ -12,7 +12,7 @@ This is the main GLM Associate plugin with Members database.
 
 == Description ==
 
-The GLM Associate consists of a main plugin (this one) and a suite of "Add-Ons" that provide additional 
+The GLM Associate consists of a main plugin (this one) and a suite of "Add-Ons" that provide additional
 functionality. These Add-Ons are separate WordPress plugins that check for the main GLM Associate plugin
 and will not activate of that doesn't exist or is not of a recent enough version.
 
@@ -25,11 +25,11 @@ The current list of these plugins/add-ons is below. There may be additional add-
 * Search Add-On for searching the Web site using an OpenSearchServer index
 * Social Add-On to display social media links
 
-There are also several plugins for use only by Gaslight Media. Please contact us if interested. 
+There are also several plugins for use only by Gaslight Media. Please contact us if interested.
 
 == Installation ==
 
-These plugins/add-on install using the standard WordPress pluging upload page. 
+These plugins/add-on install using the standard WordPress pluging upload page.
 
 Once installed, they can communicate with the Gaslight Meda WordPress plugin update server to determine
 if a new version is available and to update the plugin if there is. These actions are integrated into the
@@ -43,21 +43,21 @@ plugins/add-ons.
 = Design of These Plugins =
 
 This project is build using an MVC approach (Model, View, Controller). All actions taken are controlled by
-models in the "models" "admin" and "front" directories. Those directories and the file names they contain are 
+models in the "models" "admin" and "front" directories. Those directories and the file names they contain are
 structured to mostly mimic the menus and actions they perform. Similarly, all output is created by Smarty
-templates in the "views" "admin" and "front" directories. Again, those directories mostly mimic the actions 
+templates in the "views" "admin" and "front" directories. Again, those directories mostly mimic the actions
 they are associated with. All actions are controlled by admin and front processes in the "controllers" directory.
 
-In addition there are other directories containing various other support files. Most notiably is the 
+In addition there are other directories containing various other support files. Most notiably is the
 "classes/data" directory that contains data definitions and specific support methods for them. These data classes
-are processed by a proprietary Gaslight Media data abstract class. 
+are processed by a proprietary Gaslight Media data abstract class.
 
 The net result of this stucture is that all data processing is handled models that in the end provide an array
 of resuslts that is converted to HTML (and other file types) output by the views. It is therefore a complete
 separateion of data and output.
 
 Add-ons "register" themselves with the main plugin and otherwise the main plugin knows nothing about them or
-what they do. All interaction is provided via WordPress style "hooks". 
+what they do. All interaction is provided via WordPress style "hooks".
 
 There is of course much more to this.
 
@@ -67,6 +67,9 @@ There is of course much more to this.
 
 == Changelog ==
 
+= 2.9.18 =
+* Fixed member list google map marker where the id's used may not be the same.
+
 = 2.9.17 =
 
 * Fixed login contact permission issues where there were difficulties reading the current contact role.
index 35a1054..0e4a26c 100644 (file)
                             draggable: false,
                             animation: google.maps.Animation.DROP,
                             title: '{$m.member|escape}',
-                            descr: $('#map_info_' + {$m.member}).html(),
+                            descr: $('#map_info_' + {$m.id}).html(),
                             memberID: {$m.member}
                         });