reservation data
This commit is contained in:
@@ -404,7 +404,9 @@ $(document).on('turbolinks:load', function() {
|
||||
success: function(result){
|
||||
// For Server Print - from jade
|
||||
if ($("#server_mode").val() == "cloud") {
|
||||
code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
||||
if(typeof code2lab != 'undefined'){
|
||||
code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
||||
}
|
||||
}
|
||||
location.reload();
|
||||
|
||||
@@ -428,7 +430,9 @@ $(document).on('turbolinks:load', function() {
|
||||
success: function(result){
|
||||
// For Server Print - from jade
|
||||
if ($("#server_mode").val() == "cloud") {
|
||||
code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
||||
if(typeof code2lab != 'undefined'){
|
||||
code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
||||
}
|
||||
}
|
||||
location.reload();
|
||||
}
|
||||
|
||||
@@ -111,6 +111,26 @@ $(document).ready(function() {
|
||||
railBorderRadius: '0',
|
||||
touchScrollStep : 50
|
||||
});
|
||||
|
||||
$('#process-reservation-slimscroll').slimScroll({
|
||||
height: height-$('#process-reservation-slimscroll').attr('data-height'),
|
||||
size: '5px',
|
||||
color: 'rgba(0,0,0,0.5)',
|
||||
alwaysVisible: false,
|
||||
borderRadius: '0',
|
||||
railBorderRadius: '0',
|
||||
touchScrollStep : 50
|
||||
});
|
||||
|
||||
$('#reservation-info-slimscroll').slimScroll({
|
||||
height: height-$('#reservation-info-slimscroll').attr('data-height'),
|
||||
size: '5px',
|
||||
color: 'rgba(0,0,0,0.5)',
|
||||
alwaysVisible: false,
|
||||
borderRadius: '0',
|
||||
railBorderRadius: '0',
|
||||
touchScrollStep : 50
|
||||
});
|
||||
// $('.delete').click(function(){
|
||||
// var method = $(this).attr('data-method');
|
||||
// var url = $(this).attr('data-ref');
|
||||
|
||||
@@ -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