|
|
|
|
@@ -130,6 +130,12 @@ function __fxn_Set_DebugOpt() {
|
|
|
|
|
console.log("OPT" + navigator.appVersion);
|
|
|
|
|
if (navigator.appVersion.includes("Web0S") == true) {
|
|
|
|
|
HotelTV.dbginfo['emulator'] = false;
|
|
|
|
|
HotelTV.devinfo['manufacture'] = "LG";
|
|
|
|
|
HotelTV.devinfo['tvOS'] = "Web0S";
|
|
|
|
|
} else if (navigator.appVersion.includes("Tizen") == true) {
|
|
|
|
|
HotelTV.dbginfo['emulator'] = false;
|
|
|
|
|
HotelTV.devinfo['manufacture'] = "SAMSUNG";
|
|
|
|
|
HotelTV.devinfo['tvOS'] = "Tizen";
|
|
|
|
|
} else {
|
|
|
|
|
HotelTV.dbginfo['emulator'] = true;
|
|
|
|
|
}
|
|
|
|
|
@@ -209,7 +215,7 @@ HotelTV.Init = async function() {
|
|
|
|
|
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
|
|
|
|
|
},
|
|
|
|
|
"cb_eoe": function() {
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot(), 500);
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot, 500);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@@ -236,7 +242,7 @@ HotelTV.Init = async function() {
|
|
|
|
|
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
|
|
|
|
},
|
|
|
|
|
"cb_eoe": function() {
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot(), 500);
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot, 500);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@@ -270,7 +276,7 @@ HotelTV.Init = async function() {
|
|
|
|
|
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
|
|
|
|
|
},
|
|
|
|
|
"cb_eoe": function() {
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot(), 500);
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot, 500);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
@@ -291,7 +297,7 @@ HotelTV.Init = async function() {
|
|
|
|
|
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
|
|
|
|
},
|
|
|
|
|
"cb_eoe": function() {
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot(), 500);
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot, 500);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@@ -314,7 +320,7 @@ HotelTV.Init = async function() {
|
|
|
|
|
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
|
|
|
|
},
|
|
|
|
|
"cb_eoe": function() {
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot(), 500);
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot, 500);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@@ -343,7 +349,7 @@ HotelTV.Init = async function() {
|
|
|
|
|
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
|
|
|
|
},
|
|
|
|
|
"cb_eoe": function() {
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot(), 500);
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot, 500);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@@ -366,7 +372,7 @@ HotelTV.Init = async function() {
|
|
|
|
|
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
|
|
|
|
},
|
|
|
|
|
"cb_eoe": function() {
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot(), 500);
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot, 500);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@@ -401,7 +407,7 @@ HotelTV.Init = async function() {
|
|
|
|
|
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
|
|
|
|
},
|
|
|
|
|
"cb_eoe": function() {
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot(), 500);
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot, 500);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@@ -424,7 +430,7 @@ HotelTV.Init = async function() {
|
|
|
|
|
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
|
|
|
|
},
|
|
|
|
|
"cb_eoe": function() {
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot(), 500);
|
|
|
|
|
setTimeout(HotelTV.hcap.Reboot, 500);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@@ -648,13 +654,15 @@ HotelTV.LoadAppFull = async function() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
let _result = await HotelTV.api.DeleteAmenityCarts(null);
|
|
|
|
|
HotelTV.carts.amenity = await HotelTV.api.GetAmenityCarts(null);
|
|
|
|
|
} catch (_error) {
|
|
|
|
|
console.error("Display Error page for get amenity carts info");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
HotelTV.carts.roomservice = await HotelTV.api.GetRoomserviceCarts();
|
|
|
|
|
try {
|
|
|
|
|
let _result = await HotelTV.api.DeleteRoomserviceCarts(null);
|
|
|
|
|
HotelTV.carts.roomservice = await HotelTV.api.GetRoomserviceCarts();
|
|
|
|
|
} catch (_error) {
|
|
|
|
|
console.error("Display Error page for get roomservicec carts info");
|
|
|
|
|
}
|
|
|
|
|
|