From: Steve Sutton Date: Thu, 21 Mar 2019 13:43:33 +0000 (-0400) Subject: Update the scripting for pdf link X-Git-Tag: v1.7.22^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fhotfix%2F1.7.22;p=WP-Plugins%2Fglm-member-db-events.git Update the scripting for pdf link Submit the form but add in target _blank. Remove these from form after submit. --- diff --git a/index.php b/index.php index 8599da3..b8e1e2d 100755 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Associate - Events Add-On * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.7.21 + * Version: 1.7.22 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.7.21 + * @version 1.7.22 */ // Check that we're being called by WordPress. @@ -43,7 +43,7 @@ if (!defined('ABSPATH')) { * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.7.21'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.7.22'); define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.13'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/js/dashboard.js b/js/dashboard.js index d90cb64..4fa5ab4 100644 --- a/js/dashboard.js +++ b/js/dashboard.js @@ -24,12 +24,13 @@ jQuery(document).ready(function ($) { GLM_GeoMap.initializeLargeMap(); }); } - jQuery('#glm-event-pdf-submit').click(function(event){ - eventForm = $('#glm-member-event-search'); - // Get the data-cats - var categories = $(this).data('cats'); - eventForm.attr('action', ajaxUrl + '?action=glm_members_admin_ajax&glm_action=pdfOutput&glm-event-pdf=1&categories=' + categories ); - }); + // This has been moved into the view file for the event search form + // jQuery('#glm-event-pdf-submit').click(function(event){ + // eventForm = $('#glm-member-event-search'); + // // Get the data-cats + // var categories = $(this).data('cats'); + // eventForm.attr('action', ajaxUrl + '?action=glm_members_admin_ajax&glm_action=pdfOutput&glm-event-pdf=1&categories=' + categories ); + // }); if (jQuery('#glm-event-name').length > 0) { var cache = {}; jQuery("#glm-event-name").autocomplete({ diff --git a/views/front/events/searchForm.html b/views/front/events/searchForm.html index 8d46e3a..e15dc54 100644 --- a/views/front/events/searchForm.html +++ b/views/front/events/searchForm.html @@ -127,8 +127,20 @@ {/if}