reservation data

This commit is contained in:
phyusin
2018-09-28 15:54:17 +06:30
parent 786dd8c490
commit 5a0473d777
18 changed files with 313 additions and 63 deletions

View File

@@ -1,6 +1,7 @@
//= require custom.js
$(function(){
$(".room_type").hide();
/*new customer UI func:*/
//Initialize tooltips
$('.nav-tabs > li a[title]').tooltip();
@@ -21,6 +22,7 @@ $(function(){
nextTab($active);
$('.wizard .nav-tabs li.active .connecting-line').css({"border-bottom-left-radius": 0, "border-top-left-radius": 0});
});
$(".prev-step").click(function (e) {
var $active = $('.wizard .nav-tabs li a.active');
@@ -28,6 +30,28 @@ $(function(){
});
/*new customer UI func:*/
$(".reservation_type").on("click", function(){
if($(this).val() == "Dine-in"){
$(".dining_type").show();
$(".room_type").hide();
}else{
$(".dining_type").hide();
$(".room_type").show();
}
});
$(".number_limit").on("click", function(){
if(parseInt($(this).val()) <= 0){
if($(this).attr("data-type") == "room"){
$("#room_count").val(1);
}else if($(this).attr("data-type") == "adult"){
$("#adult_count").val(1);
}else{
$("#child_count").val(1);
}
}
});
});
/*customer UI tab btn*/