They change this all the time.
// redirect any clicks on the list items to the appropriate page
$('.newdd-sched-option').on('click', function() {
- location.href = "https://www.mackinacferry.com/schedules/?dockId=" + $(this).attr('value') + "&scheduleId=" + $(this).parent().attr('id').slice(-1) + "#edit-divy";
+ location.href = scheduleUrl + "?dockId=" + $(this).attr('value') + "&scheduleId=" + $(this).parent().attr('id').slice(-1) + "#edit-divy";
});
});
// redirect any clicks on the list items to the appropriate page
$('.newdd-sched-option').on('click', function() {
- location.href = "https://www.mackinacferry.com/schedules/?dockId=" + $(this).attr('value') + "&scheduleId=" + $(this).parent().attr('id').slice(-1) + "#edit-divy";
+ location.href = scheduleUrl + "?dockId=" + $(this).attr('value') + "&scheduleId=" + $(this).parent().attr('id').slice(-1) + "#edit-divy";
});
});
+<?php
+// Get the options for starline
+$starlineOptions = unserialize( get_option( GLM_MEMBERS_APIS_STARLINE_OPTION_NAME ) );
+$starlinePageSlug = ( isset( $starlineOptions['pageSlug'] ) ) ? $starlineOptions['pageSlug'] : '';
+?>
+<script>
+var scheduleUrl = '<?php echo get_permalink( $starlinePageSlug );?>';
+</script>
<ul class="sub-menu dropdown schedules-dropdown">
<div id="schedules">
<?php echo do_shortcode('[glm-members-api-schedule in_dropdown="True"]'); ?>
Author: Gaslight Media
Author URI: http://www.gaslightmedia.com
Description: A theme for Star Line
-Version: 1.0.41
+Version: 1.0.42
*/