Add time state for epg popup

This commit is contained in:
df 2020-06-05 20:41:02 +00:00
parent 479510760c
commit cc3a79ca4a
1 changed files with 3 additions and 1 deletions

View File

@ -296,6 +296,8 @@ foreach e $records {
set showing 0
if {$perc > 0 && $perc < 100} { set showing 1 }
set state $($perc >= 100 ? 2: $showing)
set txt "[cgi_quote_html [$e get name]] <span>([\
clock format $es -format "%H:%M"] - [\
clock format $ee -format "%H:%M"])"
@ -321,7 +323,7 @@ foreach e $records {
style=\"width: [expr $px - 4]px;\" title=\"$htxt\">
<a class=event href=# xs=[$e get service_id]
xe=[$e get event_id] sch=[$e get sched_type]
rec=$recopts>"
rec=$recopts st=$state>"
puts $txt
puts "</a>"
puts "</div>"