]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Keep transports in a scrolled list
authorAndreas Öman <andreas@lonelycoder.com>
Sat, 19 Apr 2008 20:21:55 +0000 (20:21 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Sat, 19 Apr 2008 20:21:55 +0000 (20:21 +0000)
ajaxui/ajaxui_config_transport.c

index b8801c301014ea16b1bf7343428cdab4824629b2..53d955ce5e7da16aa661f831e15d596a22240e94 100644 (file)
@@ -130,6 +130,9 @@ ajax_transport_build_list(http_connection_t *hc, tcp_queue_t *tq,
                    csize);
   tcp_qprintf(tq, "<hr>");
 
+  tcp_qprintf(tq, "<div id=\"xyzxyz\" "
+             "style=\"height: %dpx; overflow: auto\" class=\"normallist\">",
+             MIN(numtransports, displines) * 14);
 
   LIST_FOREACH(t, tlist, tht_tmp_link) {
     tcp_qprintf(tq, "<div%s>", o ? " style=\"background: #fff\"" : "");
@@ -251,7 +254,7 @@ ajax_transport_build_list(http_connection_t *hc, tcp_queue_t *tq,
     tcp_qprintf(tq, "</div>\r\n");
     
   }
-  tcp_qprintf(tq, "<hr>\r\n");
+  tcp_qprintf(tq, "</div><hr>\r\n");
 
   tcp_qprintf(tq, "<div style=\"overflow: auto; width: 100%\">");