var off_canvas_arrival = $(".right-off-canvas-menu").find("#start-date");
var off_canvas_departure = $(".right-off-canvas-menu").find("#end-date");
- $(off_canvas_arrival).removeClass("date-pick").removeAttr("onclick").removeAttr("value");
- $(off_canvas_departure).removeClass("date-pick").removeAttr("onclick").removeAttr("value");
+// $(off_canvas_arrival).removeClass("date-pick").removeAttr("onclick").removeAttr("value");
+// $(off_canvas_departure).removeClass("date-pick").removeAttr("onclick").removeAttr("value");
- $(off_canvas_arrival).datepicker({
+// $(off_canvas_arrival).datepicker({
- minDate: 0,
+// minDate: 0,
// beforeShow: function (input, inst) {
// setTimeout(function () {
// inst.dpDiv.css({
// });
// }, 0);
// }
- });
+// });
var depart_min, min_date, y, m, d;
- $(off_canvas_arrival).change( function () {
-
- min_date = $(this).datepicker('getDate', '+1d');
- min_date.setDate(min_date.getDate() + 1);
+// $(off_canvas_arrival).change( function () {
+//
+// min_date = $(this).datepicker('getDate', '+1d');
+// min_date.setDate(min_date.getDate() + 1);
// $(off_canvas_departure).datepicker('setDate', min_date);
- $(off_canvas_departure).datepicker('option','minDate', min_date );
-
- });
- $(off_canvas_departure).datepicker({
-// beforeShow: function (input, inst) {
-// setTimeout(function () {
-// inst.dpDiv.css({
-// top: 100,
-// left: 50
-// });
-// }, 0);
-// }
- });
+// $(off_canvas_departure).datepicker('option','minDate', min_date );
+//
+// });
+// $(off_canvas_departure).datepicker({
+//// beforeShow: function (input, inst) {
+//// setTimeout(function () {
+//// inst.dpDiv.css({
+//// top: 100,
+//// left: 50
+//// });
+//// }, 0);
+//// }
+// });
// this section is to remove duplicate ID's preventing datepicker from working
+ var start_datepicker_large = $("#resContent").find("#start-jrdatepicker");
+ var end_datepicker_large = $("#resContent").find("#end-jrdatepicker");
+
if ($(window).width() < 1024) {
$(start_date).attr("id", "none")
$(end_date).attr("id", "none");
+ $(start_datepicker_large).attr("id", "none");
+ $(end_datepicker_large).attr("id", "none");
+
} else {
$(start_date).attr("id", "start-date")
$(end_date).attr("id", "end-date");
+ $(start_datepicker_large).attr("id", "start-jrdatepicker");
+ $(end_datepicker_large).attr("id", "end-jrdatepicker");
}
$(window).resize( function () {
if ($(window).width() < 1024) {
$(start_date).attr("id", "none");
$(end_date).attr("id", "none");
+ $(start_datepicker_large).attr("id", "none");
+ $(end_datepicker_large).attr("id", "none");
} else {
$(start_date).attr("id", "start-date");
$(end_date).attr("id", "end-date");
+ $(start_datepicker_large).attr("id", "start-jrdatepicker");
+ $(end_datepicker_large).attr("id", "end-jrdatepicker");
}
});
var off_canvas_arrival = $(".right-off-canvas-menu").find("#start-date");
var off_canvas_departure = $(".right-off-canvas-menu").find("#end-date");
- $(off_canvas_arrival).removeClass("date-pick").removeAttr("onclick").removeAttr("value");
- $(off_canvas_departure).removeClass("date-pick").removeAttr("onclick").removeAttr("value");
+// $(off_canvas_arrival).removeClass("date-pick").removeAttr("onclick").removeAttr("value");
+// $(off_canvas_departure).removeClass("date-pick").removeAttr("onclick").removeAttr("value");
- $(off_canvas_arrival).datepicker({
+// $(off_canvas_arrival).datepicker({
- minDate: 0,
+// minDate: 0,
// beforeShow: function (input, inst) {
// setTimeout(function () {
// inst.dpDiv.css({
// });
// }, 0);
// }
- });
+// });
var depart_min, min_date, y, m, d;
- $(off_canvas_arrival).change( function () {
-
- min_date = $(this).datepicker('getDate', '+1d');
- min_date.setDate(min_date.getDate() + 1);
+// $(off_canvas_arrival).change( function () {
+//
+// min_date = $(this).datepicker('getDate', '+1d');
+// min_date.setDate(min_date.getDate() + 1);
// $(off_canvas_departure).datepicker('setDate', min_date);
- $(off_canvas_departure).datepicker('option','minDate', min_date );
-
- });
- $(off_canvas_departure).datepicker({
-// beforeShow: function (input, inst) {
-// setTimeout(function () {
-// inst.dpDiv.css({
-// top: 100,
-// left: 50
-// });
-// }, 0);
-// }
- });
+// $(off_canvas_departure).datepicker('option','minDate', min_date );
+//
+// });
+// $(off_canvas_departure).datepicker({
+//// beforeShow: function (input, inst) {
+//// setTimeout(function () {
+//// inst.dpDiv.css({
+//// top: 100,
+//// left: 50
+//// });
+//// }, 0);
+//// }
+// });
// this section is to remove duplicate ID's preventing datepicker from working
+ var start_datepicker_large = $("#resContent").find("#start-jrdatepicker");
+ var end_datepicker_large = $("#resContent").find("#end-jrdatepicker");
+
if ($(window).width() < 1024) {
$(start_date).attr("id", "none")
$(end_date).attr("id", "none");
+ $(start_datepicker_large).attr("id", "none");
+ $(end_datepicker_large).attr("id", "none");
+
} else {
$(start_date).attr("id", "start-date")
$(end_date).attr("id", "end-date");
+ $(start_datepicker_large).attr("id", "start-jrdatepicker");
+ $(end_datepicker_large).attr("id", "end-jrdatepicker");
}
$(window).resize( function () {
if ($(window).width() < 1024) {
$(start_date).attr("id", "none");
$(end_date).attr("id", "none");
+ $(start_datepicker_large).attr("id", "none");
+ $(end_datepicker_large).attr("id", "none");
} else {
$(start_date).attr("id", "start-date");
$(end_date).attr("id", "end-date");
+ $(start_datepicker_large).attr("id", "start-jrdatepicker");
+ $(end_datepicker_large).attr("id", "end-jrdatepicker");
}
});
<div id="resContent">
<div class="row resDropdown">
- <div id="resform-wrapper" class="small-12 column">
+ <div id="resform-wrapper" class="small-12 column show-for-large-up">
<?php if(is_front_page()) { ?>
<script src="http://widgets.bookdirect.net/widgets/search_widget.js.php?id=884" type="text/javascript"></script>
<?php } else { ?>