From 6697d7f8c859bf3a4d59caf0d71aba515c19cf22 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 30 Mar 2017 11:36:20 -0400 Subject: [PATCH] Update dashboard.js file so it has $ for jquery. Setting up the document ready and passing $ so it's available for the dashboard.js calls. --- index.php | 6 +++--- js/dashboard.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 3e5c09a..0e87755 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.28 + * Version: 1.6.29 * 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.28 + * @version 1.6.29 */ /* @@ -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.28'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.29'); 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/js/dashboard.js b/js/dashboard.js index b8c9024..2df4189 100644 --- a/js/dashboard.js +++ b/js/dashboard.js @@ -1,4 +1,4 @@ -(function(){ +jQuery(document).ready(function ($) { if ($('#glm-event-from').length > 0) { $('#glm-event-from').datepicker({ dateFormat: "mm/dd/yy" @@ -46,4 +46,4 @@ } }); } -}).call(this); +}); -- 2.17.1