日期调整为至少提前两天能选择

master
LiaoYijun 3 years ago
parent 78cc32fbf2
commit 717b473574

@ -29,8 +29,17 @@
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-56CMWN3');</script>
<!-- End Google Tag Manager -->
<script src="https://data.asiahighlights.com/min/?f=/js/jquery-1.8.2.min.js,/js/bootstrap.min.js,/js/bootstrap-datepicker/bootstrap-datepicker.min.js,/js/typeahead.bundle.js,/js/basic.js,/js/jquery.form.min.js,/js/poshytip/jquery.poshytip.min.js,/js/jquery.sticky-kit.min.js"></script>
<script src="https://data.asiahighlights.com/min/?f=/js/jquery-1.8.2.min.js,/js/bootstrap.min.js,/js/bootstrap-datepicker/bootstrap-datepicker.min.js,/js/typeahead.bundle.js,/js/jquery.form.min.js,/js/poshytip/jquery.poshytip.min.js,/js/jquery.sticky-kit.min.js"></script>
<link href="https://data.asiahighlights.com/min/?f=/js/bootstrap-datepicker/css/bootstrap-datepicker3.standalone.css" rel="stylesheet">
<script>
$(function () {
$("#Date_Start").datepicker({
format: 'mm/dd/yyyy',
autoclose: true,
startDate: '+2d'
});
});
</script>
<style>
body { margin:0; font-family: Calibri;}
.headerbar {height: 90px;}

@ -1259,7 +1259,7 @@ p {font-size: 18px;}
</h3>
<span id="date_error_msg" class="hidden">(Please fill out this field.)</span>
<input type="date" class="arrivalDate visible-xs" id="Date_Start" name="Date_Start_Mobile" value=""
min="<?php echo date('Y-m-d',time() + 24*3600*7)?>" placeholder="mm/dd/yyyy" autocomplete="off" />
min="<?php echo date('Y-m-d',time() + 24*3600*2)?>" placeholder="mm/dd/yyyy" autocomplete="off" />
<div class="checkYes">
<input type="checkbox" class="checkBorder" id="dateLimit" name="flexible" value="Yes">
<label for="dateLimit" class="checkBlock">

@ -99,12 +99,6 @@ function showTips(objName, title) {
}
$(function () {
$(".datepicker").datepicker({
format: 'mm/dd/yyyy',
autoclose: true,
startDate: '+5d'
});
var substringMatcher = function (strs) {
return function findMatches(q, cb) {
var matches, substringRegex;

Loading…
Cancel
Save