diff --git a/procentric/application/lib/hoteltv.ui_welcome.js b/procentric/application/lib/hoteltv.ui_welcome.js index 7459bc6..f240669 100755 --- a/procentric/application/lib/hoteltv.ui_welcome.js +++ b/procentric/application/lib/hoteltv.ui_welcome.js @@ -416,9 +416,23 @@ HotelTV.ui_welcome = (function() { 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 console.log("LANG SEL[CHANGED]::>" + event.page.index); _state.lang = Object.keys(_ctzOpening.languages)[event.page.index]; + __ifxn_sendNextLangUsrData(_state.lang); + __uifxn_WC_SetCtz(_ctzGst.name, _ctzWc.message); }); } else {