Fixes for js error and text position
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 5 Apr 2017 16:24:12 +0000 (12:24 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 5 Apr 2017 16:24:12 +0000 (12:24 -0400)
In the back to search button text is not showing up correctly. Adding
position relative to the parent of this button so it works correctly.
Fix js errors by adding to the dep arg for the wp_register_script call.

css/front.css
models/front/events/detail.php
models/front/events/list.php

index 8c79115..3f87ec4 100755 (executable)
@@ -8,6 +8,7 @@
 #glm-event-wrapper.event-detail {
     /* max-width: 650px; */
     margin: 0 auto;
+    position: relative;
 }
 .glm-event-day-row {
     margin-top: 8px !important;
index 78ceee5..da80043 100644 (file)
@@ -93,7 +93,7 @@ class GlmMembersFront_events_detail extends GlmMembersFront_events_baseAction
         wp_register_script(
             'event-dashboard-js',
             GLM_MEMBERS_EVENTS_PLUGIN_BASE_URL . '/js/dashboard.js',
-            array('jquery-ui-datepicker','jquery-ui-autocomplete'),
+            array('jquery-core', 'jquery-ui-datepicker','jquery-ui-autocomplete'),
             GLM_MEMBERS_EVENTS_PLUGIN_VERSION,
             true
         );
index 6a87c0f..afb6edb 100644 (file)
@@ -245,7 +245,7 @@ class GlmMembersFront_events_list extends GlmMembersFront_events_baseAction
         wp_register_script(
             'event-dashboard-js',
             GLM_MEMBERS_EVENTS_PLUGIN_BASE_URL . '/js/dashboard.js',
-            array('jquery-ui-datepicker','jquery-ui-autocomplete'),
+            array('jquery-core', 'jquery-ui-datepicker', 'jquery-ui-autocomplete'),
             GLM_MEMBERS_EVENTS_PLUGIN_VERSION,
             true
         );