enqueueing date picker for front end add form
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 25 May 2016 14:54:00 +0000 (10:54 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 25 May 2016 14:54:00 +0000 (10:54 -0400)
models/front/events/frontAdd.php

index a51a433..1f31ca9 100644 (file)
@@ -89,7 +89,7 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents
     public function modelAction($actionData = false)
     {
         if( ! wp_script_is( 'jquery-ui', 'enqueued' ) ){
-            wp_enqueue_script('jquery-ui-dialog', false, array('jquery'), false, true);
+            wp_enqueue_script('jquery-ui-datepicker', false, array('jquery'), false, true);
             wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css');
             wp_enqueue_script('front-js', GLM_MEMBERS_EVENTS_PLUGIN_PATH . 'js/front.js');
         }