]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
add channel groups at tail
authorAndreas Öman <andreas@lonelycoder.com>
Sun, 2 Dec 2007 16:33:36 +0000 (16:33 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Sun, 2 Dec 2007 16:33:36 +0000 (16:33 +0000)
channels.c
htmlui.c

index 4bda81c9113586706d6fe7328834ce328c4d78ef..29f228cfcdfb21da74456980a14d39ababa26734 100644 (file)
@@ -69,7 +69,7 @@ channel_group_find(const char *name, int create)
   
   TAILQ_INIT(&tcg->tcg_channels);
 
-  TAILQ_INSERT_HEAD(&all_channel_groups, tcg, tcg_global_link);
+  TAILQ_INSERT_TAIL(&all_channel_groups, tcg, tcg_global_link);
   return tcg;
 }
 
index a7c35544dc55b4947132ea868fd89a2a99fa2302..6ff41fd59b6a89256e4c40ee9f385cccba700824 100644 (file)
--- a/htmlui.c
+++ b/htmlui.c
@@ -1255,19 +1255,6 @@ page_chgroups(http_connection_t *hc, const char *remain, void *opaque)
   top_menu(hc, &tq);
 
 
-  tcp_qprintf(&tq, "<form method=\"get\" action=\"/chgrp\">");
-
-  box_top(&tq, "box");
-  tcp_qprintf(&tq, "<div class=\"content3\">"
-             "<input type=\"text\" name=\"newgrpname\"> "
-             "<input type=\"submit\" name=\"newgrp\""
-             " value=\"Add new group\">"
-             "</div>");
-
-  box_bottom(&tq);
-  tcp_qprintf(&tq, "</form><br>\r\n");
-
-
   TAILQ_FOREACH(tcg, &all_channel_groups, tcg_global_link) {
 
     tcp_qprintf(&tq, "<form method=\"get\" action=\"/chgrp\">");
@@ -1295,6 +1282,20 @@ page_chgroups(http_connection_t *hc, const char *remain, void *opaque)
   }
 
 
+  tcp_qprintf(&tq, "<form method=\"get\" action=\"/chgrp\">");
+
+  box_top(&tq, "box");
+  tcp_qprintf(&tq, "<div class=\"content3\">"
+             "<input type=\"text\" name=\"newgrpname\"> "
+             "<input type=\"submit\" name=\"newgrp\""
+             " value=\"Add new group\">"
+             "</div>");
+
+  box_bottom(&tq);
+  tcp_qprintf(&tq, "</form><br>\r\n");
+
+
+
   http_output_queue(hc, &tq, "text/html; charset=UTF-8");
   return 0;
 }