Update dashboard.js file so it has $ for jquery.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 30 Mar 2017 15:36:20 +0000 (11:36 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 30 Mar 2017 15:36:20 +0000 (11:36 -0400)
Setting up the document ready and passing $ so it's available for the
dashboard.js calls.

index.php
js/dashboard.js

index 3e5c09a..0e87755 100644 (file)
--- 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 <cscott@gaslightmedia.com>
  * @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.
index b8c9024..2df4189 100644 (file)
@@ -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);
+});