From 8a263ced1a8bc3ec803f04c8d5e70132b2f6b890 Mon Sep 17 00:00:00 2001 From: paul kim Date: Wed, 12 Jun 2024 22:14:37 +0900 Subject: [PATCH] issue #10 #11 Apply last_lang user dataset into welcome. --- procentric/application/lib/hoteltv.ui_welcome.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 {