]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Use correct mapped / unmapped image upon initial display
authorAndreas Öman <andreas@lonelycoder.com>
Tue, 8 Apr 2008 16:52:09 +0000 (16:52 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Tue, 8 Apr 2008 16:52:09 +0000 (16:52 +0000)
ajaxui/ajaxui_config_transport.c

index e6d38ebeefa31e18c5857b07dc4db9e0ca8cf55d..4dba17a6d188e367aedf26da80fceaacaa787809 100644 (file)
@@ -169,8 +169,9 @@ ajax_transport_build_list(tcp_queue_t *tq, struct th_transport_list *tlist)
                "onClick=\"new "
                "Ajax.Request('/ajax/transport_op/%s', "
                "{parameters: {action: 'toggle'}})\">"
-               "<img id=\"map%s\" src=\"/gfx/unmapped.png\"></a></div>",
-               t->tht_identifier, t->tht_identifier);
+               "<img id=\"map%s\" src=\"/gfx/%smapped.png\"></a></div>",
+               t->tht_identifier, t->tht_identifier,
+               t->tht_channel ? "" : "un");
 
     tcp_qprintf(tq, "<div id=\"chname%s\" style=\"float: left; width: 26%\">",
                t->tht_identifier);