removing times tables insert statement
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 29 Apr 2016 16:34:07 +0000 (12:34 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 29 Apr 2016 16:34:07 +0000 (12:34 -0400)
js/admin.js
js/front.js
models/front/events/frontAdd.php

index 427f37f..6b44c8d 100644 (file)
@@ -3,8 +3,4 @@
  * To change this template file, choose Tools | Templates
  * and open the template in the editor.
  */
-jQuery(document).ready( function () { 
-    
-});
 
index 929b543..867b530 100644 (file)
@@ -34,28 +34,28 @@ var EventFront = {
                 }
             });
             $("#repeatingEvent").change( function () {
-                if(this.checked){
+                 if(this.checked){
                     $(".frontRecurrences").fadeIn('medium');
                 } else {
                     $(".frontRecurrences").fadeOut('medium');
                 }
             });
             $("#allDay").change( function () {
-                if(this.checked){
+                 if(this.checked){
                     $(".timeRow").fadeOut('medium');
                 } else {
                     $(".timeRow").fadeIn('medium');
                 }
             });
             $("#dayOfMonth").change( function () {
-                if($(this).val() !== ""){
+                if(this.val() !== ""){
                     $("#daysOfWeek, #weeklyRepeatRow").fadeOut();
                 } else {
                     $("#daysOfWeek, #weeklyRepeatRow").fadeIn();
                 }
             });
             $("#weeklyRepeat").change( function () {
-                if($(this).val() !== ""){
+                if(this.val() !== ""){
                     $("#dayOfMonthRow").fadeOut();
                 } else {
                    $("#dayOfMonthRow").fadeIn();
index 7a8ba14..3ba7b57 100644 (file)
@@ -367,25 +367,8 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents
               $recurID = $this->wpdb->insert_id;
               $Recurrences->optionIncludeSelectListData = false;
               $times = $Recurrences->createRecurrenceTimesEntries($recurID, true, true);
-               
-              $timeData = array(
-                    'event'      => $eventID,
-                    'start_time' => $mysqlStart,
-                    'end_time'   => $mysqlEnd,
-                    'recur_id'   => $recurID,
-                    'all_day'    => $allDay
-                );
-              $this->wpdb->insert(
-                        GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . 'times',
-                        $timeData,
-                        array(
-                             '%d',
-                             '%s',
-                             '%s',
-                             '%d',
-                             '%d'
-                        )
-                    );
+              
+              // event category data
               $categoryData = array(
                     'event'      => $eventID,
                     'category'   => $category