diff options
-rw-r--r-- | pages/channels_widget.ecpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pages/channels_widget.ecpp b/pages/channels_widget.ecpp index e2b22da..f1506bf 100644 --- a/pages/channels_widget.ecpp +++ b/pages/channels_widget.ecpp @@ -10,16 +10,17 @@ using namespace vdrlive; name = "channel"; int lastChannel = LiveSetup().GetLastChannel(); selected; +onchange; </%args> - <select name="<$ name $>"> + <select name="<$ name $>" <{ reply.out() << ( !onchange.empty() ? "onchange=\""+onchange+"\"" : "" ); }>> <{ for (cChannel *listChannel = Channels.First(); listChannel && listChannel->Number() <= lastChannel; listChannel = Channels.Next(listChannel)) { if (!listChannel->GroupSep() && *listChannel->Name()) { std::string channelId = *listChannel->GetChannelID().ToString(); }> <option value="<$ listChannel->Number() $>" - <$ channelId == selected ? "selected=\"selected\"" : "" $>><$ listChannel->Name() $></option> + <{ reply.out() << ( channelId == selected ? "selected=\"selected\"" : "" ); }>><$ listChannel->Name() $></option> <{ } } |