commenting out enqueue for frontjs to test broken source path error, replacing $...
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 21 Sep 2016 17:49:01 +0000 (13:49 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 21 Sep 2016 17:49:01 +0000 (13:49 -0400)
js/front.js
models/front/events/frontAdd.php

index 1ca21ad..09e627b 100644 (file)
@@ -28,37 +28,37 @@ var EventFront = {
 
             jQuery("#freeEvent").change( function () {
                 if(this.checked){
-                    $("#cost").fadeOut('medium');
+                    jQuery("#cost").fadeOut('medium');
                 } else {
-                    $("#cost").fadeIn('medium');
+                    jQuery("#cost").fadeIn('medium');
                 }
             });
             jQuery("#repeatingEvent").change( function () {
                  if(this.checked){
-                    $(".frontRecurrences").fadeIn('medium');
+                    jQuery(".frontRecurrences").fadeIn('medium');
                 } else {
-                    $(".frontRecurrences").fadeOut('medium');
+                    jQuery(".frontRecurrences").fadeOut('medium');
                 }
             });
             jQuery("#allDay").change( function () {
                  if(this.checked){
-                    $(".timeRow").fadeOut('medium');
+                    jQuery(".timeRow").fadeOut('medium');
                 } else {
-                    $(".timeRow").fadeIn('medium');
+                    jQuery(".timeRow").fadeIn('medium');
                 }
             });
             jQuery("#dayOfMonth").change( function () {
                 if(this.val() !== ""){
-                    $("#daysOfWeek, #weeklyRepeatRow").fadeOut();
+                    jQuery("#daysOfWeek, #weeklyRepeatRow").fadeOut();
                 } else {
-                    $("#daysOfWeek, #weeklyRepeatRow").fadeIn();
+                    jQuery("#daysOfWeek, #weeklyRepeatRow").fadeIn();
                 }
             });
             jQuery("#weeklyRepeat").change( function () {
                 if(this.val() !== ""){
-                    $("#dayOfMonthRow").fadeOut();
+                    jQuery("#dayOfMonthRow").fadeOut();
                 } else {
-                   $("#dayOfMonthRow").fadeIn();
+                   jQuery("#dayOfMonthRow").fadeIn();
                 }
             });
         }
index 1f0ebeb..91234dd 100644 (file)
@@ -120,7 +120,7 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents
         if( ! wp_script_is( 'jquery-ui', 'enqueued' ) ){
             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');
+//            wp_enqueue_script('front-js', GLM_MEMBERS_EVENTS_PLUGIN_PATH . '/js/front.js');
         }
         $view = 'frontAdd';
         // populate category dropdown