From 98e8db71fe5bcb874cdc196632967e36f505fdd2 Mon Sep 17 00:00:00 2001 From: paul kim Date: Wed, 19 Jun 2024 14:20:17 +0900 Subject: [PATCH] issue #10 #11 Fix EPG issue when no existed epg info. --- procentric/application/lib/hoteltv.ui_appfull.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/procentric/application/lib/hoteltv.ui_appfull.js b/procentric/application/lib/hoteltv.ui_appfull.js index 29b6b9a..3e9feb5 100755 --- a/procentric/application/lib/hoteltv.ui_appfull.js +++ b/procentric/application/lib/hoteltv.ui_appfull.js @@ -4937,12 +4937,13 @@ HotelTV.ui_appfull = (function() { { let _ChItem = _tvCtgyAllChannels[_idx]; // _chNumber는 -기준으로 잘라낸 앞숫자, 예를들면 16-1이라면 _chNumber는 16이 됨. - let _ChNumber = __ifxn_getChItemValue(_ChItem, "number").toString().split('-'); + let _ChNumStr = __ifxn_getChItemValue(_ChItem, "number").toString(); + let _ChNumber = Number(_ChNumStr.split('-')[0]); // Find out matched channel - if ( Number(_ChNumber)==Number(_strReqNumNext) ){ + if ( _ChNumber==Number(_strReqNumNext) ){ // Find out - _state.tv.shortkey.ch_item_idx = Number(__ifxn_getChItemIdxByNumber(_strReqNumNext)); + _state.tv.shortkey.ch_item_idx = Number(__ifxn_getChItemIdxByNumber(_ChNumStr)); console.log("Find out matched channel index(of ALL category)::> " + _state.tv.shortkey.ch_item_idx); break; } @@ -5177,6 +5178,13 @@ HotelTV.ui_appfull = (function() { //let _new_progress_bar_width = parseInt(_elDivTvChEpgDetails.find("#tm_chart").width()*_egp_prog_inf.epg_info.progress_pcent/100); let _new_progress_bar_width = parseInt(835*_egp_prog_inf.epg_info.progress_pcent/100); _elDivTvChEpgDetails.find('.progress').width(_new_progress_bar_width); + } else { + _elDivTvChEpgTitle.text(""); + _elDivTvChEpgDetails.find('#tm_playing').text(""); + + //let _new_progress_bar_width = parseInt(_elDivTvChEpgDetails.find("#tm_chart").width()*_egp_prog_inf.epg_info.progress_pcent/100); + let _new_progress_bar_width = 0; + _elDivTvChEpgDetails.find('.progress').width(_new_progress_bar_width); } // Fade in epg