@@ -416,9 +416,23 @@ HotelTV.ui_welcome = (function() {
|
|||||||
|
|
||||||
|
|
||||||
hndl_langSel.on('changed.owl.carousel', function(event) {
|
hndl_langSel.on('changed.owl.carousel', function(event) {
|
||||||
|
const __ifxn_sendNextLangUsrData = async function(_nextLang, __cbFxnFailure=null, __cbFxn_Success=null) {
|
||||||
|
try {
|
||||||
|
let _usrDataJson = {
|
||||||
|
'next_lang': _nextLang,
|
||||||
|
};
|
||||||
|
_result = await HotelTV.api.SetUsrDataset(_usrDataJson);
|
||||||
|
console.log("The app main page will be reloaded");
|
||||||
|
} catch ( __err ){
|
||||||
|
console.log("CALL API::>" + __err);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Update Language
|
// Update Language
|
||||||
console.log("LANG SEL[CHANGED]::>" + event.page.index);
|
console.log("LANG SEL[CHANGED]::>" + event.page.index);
|
||||||
_state.lang = Object.keys(_ctzOpening.languages)[event.page.index];
|
_state.lang = Object.keys(_ctzOpening.languages)[event.page.index];
|
||||||
|
__ifxn_sendNextLangUsrData(_state.lang);
|
||||||
|
|
||||||
__uifxn_WC_SetCtz(_ctzGst.name, _ctzWc.message);
|
__uifxn_WC_SetCtz(_ctzGst.name, _ctzWc.message);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user