reservation data
This commit is contained in:
@@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user