From: Steve Sutton Date: Wed, 5 Apr 2017 16:24:12 +0000 (-0400) Subject: Fixes for js error and text position X-Git-Tag: v1.6.32^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9eecac0b79bea8e88ee634810db8783d5dadaaff;p=WP-Plugins%2Fglm-member-db-events.git 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. --- 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 );