From eb33d61070fe0e32f8cd45a09e33fdc75595bd14 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 16 Mar 2017 14:29:36 -0400 Subject: [PATCH] Bug Fix for single quote in JavaScript When the schedule name has a single quote need to escape it. --- index.php | 6 +++--- views/admin/events/edit.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index f946863..551b0e0 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Events * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.6.26 + * Version: 1.6.27 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -20,7 +20,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.6.26 + * @version 1.6.27 */ /* @@ -38,7 +38,7 @@ * 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.6.26'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.27'); define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.1'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/views/admin/events/edit.html b/views/admin/events/edit.html index db8f4dc..38560fe 100644 --- a/views/admin/events/edit.html +++ b/views/admin/events/edit.html @@ -208,7 +208,7 @@ {$sep = ''} {foreach $times as $t} {$sep}{ - title : '{$t.recur_name}', + title : '{$t.recur_name|replace:"'":"\'"}', start : '{$t.start_time.datetime}', end : '{$t.end_time.datetime}', allday : {$t.all_day.value} -- 2.17.1