From 9eecac0b79bea8e88ee634810db8783d5dadaaff Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 5 Apr 2017 12:24:12 -0400 Subject: [PATCH] Fixes for js error and text position 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 | 1 + models/front/events/detail.php | 2 +- models/front/events/list.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/css/front.css b/css/front.css index 8c79115..3f87ec4 100755 --- a/css/front.css +++ b/css/front.css @@ -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; diff --git a/models/front/events/detail.php b/models/front/events/detail.php index 78ceee5..da80043 100644 --- a/models/front/events/detail.php +++ b/models/front/events/detail.php @@ -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 ); diff --git a/models/front/events/list.php b/models/front/events/list.php index 6a87c0f..afb6edb 100644 --- a/models/front/events/list.php +++ b/models/front/events/list.php @@ -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 ); -- 2.17.1