// }
// }
// });
+
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_departure).removeClass("date-pick").removeAttr("onclick").removeAttr("value");
+
$(off_canvas_arrival).datepicker({
+
minDate: 0,
- beforeShow: function(input, inst)
- {
- inst.dpDiv.css({marginTop: -input.offsetHeight + 'px', marginLeft: '-20px'});
- }
+ beforeShow: function (input, inst) {
+ setTimeout(function () {
+ inst.dpDiv.css({
+ top: 100,
+ left: 15
+ });
+ }, 0);
+ }
});
$(off_canvas_departure).datepicker({
- beforeShow: function(input, inst)
- {
- inst.dpDiv.css({marginTop: '-10px', marginLeft: '-20px'});
- }
+ beforeShow: function (input, inst) {
+ setTimeout(function () {
+ inst.dpDiv.css({
+ top: 100,
+ left: 15
+ });
+ }, 0);
+ }
});
$(off_canvas_arrival).change( function () {
// }
// }
// });
+
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_departure).removeClass("date-pick").removeAttr("onclick").removeAttr("value");
+
$(off_canvas_arrival).datepicker({
+
minDate: 0,
- beforeShow: function(input, inst)
- {
- inst.dpDiv.css({marginTop: -input.offsetHeight + 'px', marginLeft: '-20px'});
- }
+ beforeShow: function (input, inst) {
+ setTimeout(function () {
+ inst.dpDiv.css({
+ top: 100,
+ left: 15
+ });
+ }, 0);
+ }
});
$(off_canvas_departure).datepicker({
- beforeShow: function(input, inst)
- {
- inst.dpDiv.css({marginTop: '-10px', marginLeft: '-20px'});
- }
+ beforeShow: function (input, inst) {
+ setTimeout(function () {
+ inst.dpDiv.css({
+ top: 100,
+ left: 15
+ });
+ }, 0);
+ }
});
$(off_canvas_arrival).change( function () {