Update on the class id names
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Mar 2017 17:06:17 +0000 (13:06 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Mar 2017 17:06:17 +0000 (13:06 -0400)
Need to use different id for the drop down.

models/front/apis/schedule.php
views/front/apis/schedule.html

index 4a1521a..62e077d 100644 (file)
@@ -51,9 +51,10 @@ class GlmMembersFront_apis_schedule
     {
         //echo '<pre>$_REQUEST: ' . print_r( $_REQUEST, true ) . '</pre>';
         //echo '<pre>$actionData: ' . print_r( $actionData, true ) . '</pre>';
-        $view     = 'schedule';
-        $settings = array();
-        $content  = '';
+        $view        = 'schedule';
+        $settings    = array();
+        $content     = '';
+        $mainSchedId = false;
 
         // Get the options for starline
         $starlineOptions  = unserialize( get_option( GLM_MEMBERS_APIS_STARLINE_OPTION_NAME ) );
@@ -86,6 +87,7 @@ class GlmMembersFront_apis_schedule
         curl_close( $curl );
 
         $templateData = array(
+            'mainSchedId'  => $mainSchedId,
             'content'      => $content,
             'inDropDown'   => $inDropDown,
             'schedulePage' => get_home_url(null, '/' ) . $starlinePageSlug . '/',
index fff3689..9c7c999 100644 (file)
@@ -67,8 +67,8 @@ jQuery(document).ready(function(){
 });
 </script>
 
-<div id="inside_schedule_wrapper">
-    {if $inDropDown}
+{if $inDropDown}
+    <div id="schedule_wrapper" class="common_schedule_wrapper">
         <form
             id="dockForm"
             name="dockForm"
@@ -76,7 +76,9 @@ jQuery(document).ready(function(){
             method="get">
             <input type="hidden" id="formDockId" name="dockId">
             <input type="hidden" id="formSchedId" name="scheduleId">
-    {/if}
+{else}
+    <div id="inside_schedule_wrapper" class="common_schedule_wrapper">
+{/if}
     {$content}
     {if $inDropDown}
         </form>