this.$currentDate = arrival_module.$arrive.datepicker('getDate');
this.$extraDay = arrival_module.$arrive.datepicker('getDate');
this.$extraDay.setDate(this.$extraDay.getDate() + 1);
-// departure_module.$depart.datepicker("option", {minDate: new Date(this.$extraDay)});
- this.$currentDate = new Date(this.$currentDate);
- this.$currentDate = new Date(this.$currentDate.getUTCFullYear(), this.$currentDate.getUTCMonth(), this.$currentDate.getUTCDate());
- this.$currentDate.setDate(this.$currentDate.getDate());
- this.d = this.$currentDate.getDate();
- if (this.d <= 9) {
- this.d = '0' + this.d;
- }
- this.m = this.$currentDate.getMonth() + 1;
- if (this.m <= 9) {
- this.m = '0' + this.m;
- }
- this.y = this.$currentDate.getFullYear();
- }
+ departure_module.$depart.datepicker("option", {minDate: new Date(this.$extraDay)});
+ }
+
});
}
};
},
bindEvents: function () {
this.$depart.datepicker({
- minDate: 1,
onSelect: function (date) {
this.$departure = departure_module.$depart.datepicker('getDate');
- this.$nights = Math.ceil(this.$departure - arrival_module.$currentDate) / (1000 * 60 * 60 * 24);
}
});
}
};
-
+
var restab_module = {
init: function (){
this.cacheDOM();
});
this.$input.blur(function () {
search_module.$form.animate({width: 'toggle'}, 1000);
- search_module.$search.css("visibility", "visible");
+ search_module.$search.css("visibility", "visible");
});
}
};
search_module.init();
$(".search_result_context").children("br").remove();
- var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDate1, minDays, departure, stay, d, dd, m, y;
+
+
+var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDate1, minDays, departure, stay, d, dd, m, y;
$(document).on('change', '#arriveOff', function () {
currentDate = $("#arriveOff").val();
currentDate = new Date(currentDate);
}
});
-
-
-
-// $("#block-1, #block-2, #block-3").click(function () {
-// var $tmp = $(this).find("p");
-// var $tmp2 = $(this).find("h2");
-// var $tmp3 = $(this).find("a.blocks-readmore");
-//
-// $tmp.css("display", "inline-block");
-// $tmp.css("padding", "0px 47px");
-// $tmp.css("color", "white");
-// $tmp.css("position", "relative");
-// $tmp.css("top", "15px");
-//
-// $tmp2.css("position", "relative");
-// $tmp2.css("top", "15px");
-// });
});
this.$currentDate = arrival_module.$arrive.datepicker('getDate');
this.$extraDay = arrival_module.$arrive.datepicker('getDate');
this.$extraDay.setDate(this.$extraDay.getDate() + 1);
-// departure_module.$depart.datepicker("option", {minDate: new Date(this.$extraDay)});
- this.$currentDate = new Date(this.$currentDate);
- this.$currentDate = new Date(this.$currentDate.getUTCFullYear(), this.$currentDate.getUTCMonth(), this.$currentDate.getUTCDate());
- this.$currentDate.setDate(this.$currentDate.getDate());
- this.d = this.$currentDate.getDate();
- if (this.d <= 9) {
- this.d = '0' + this.d;
- }
- this.m = this.$currentDate.getMonth() + 1;
- if (this.m <= 9) {
- this.m = '0' + this.m;
- }
- this.y = this.$currentDate.getFullYear();
- }
+ departure_module.$depart.datepicker("option", {minDate: new Date(this.$extraDay)});
+ }
+
});
}
};
},
bindEvents: function () {
this.$depart.datepicker({
- minDate: 1,
onSelect: function (date) {
this.$departure = departure_module.$depart.datepicker('getDate');
- this.$nights = Math.ceil(this.$departure - arrival_module.$currentDate) / (1000 * 60 * 60 * 24);
}
});
}
};
-
+
var restab_module = {
init: function (){
this.cacheDOM();
});
this.$input.blur(function () {
search_module.$form.animate({width: 'toggle'}, 1000);
- search_module.$search.css("visibility", "visible");
+ search_module.$search.css("visibility", "visible");
});
}
};
search_module.init();
$(".search_result_context").children("br").remove();
- var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDate1, minDays, departure, stay, d, dd, m, y;
+
+
+var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDate1, minDays, departure, stay, d, dd, m, y;
$(document).on('change', '#arriveOff', function () {
currentDate = $("#arriveOff").val();
currentDate = new Date(currentDate);
}
});
-
-
-
-// $("#block-1, #block-2, #block-3").click(function () {
-// var $tmp = $(this).find("p");
-// var $tmp2 = $(this).find("h2");
-// var $tmp3 = $(this).find("a.blocks-readmore");
-//
-// $tmp.css("display", "inline-block");
-// $tmp.css("padding", "0px 47px");
-// $tmp.css("color", "white");
-// $tmp.css("position", "relative");
-// $tmp.css("top", "15px");
-//
-// $tmp2.css("position", "relative");
-// $tmp2.css("top", "15px");
-// });
});