From: Art Cancro Date: Sun, 22 Jun 2008 04:36:04 +0000 (+0000) Subject: The 'edit room' tab panel now uses the same CSS that is used X-Git-Tag: v7.86~2136 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=5ff52be939c2a41fcb0296df76e34a477c3a2576 The 'edit room' tab panel now uses the same CSS that is used in the tabs.c API. This eliminates the problem with tabs breaking out into two floating rows on narrow screens. --- diff --git a/webcit/roomops.c b/webcit/roomops.c index 788b8cfe1..6fb8bafb4 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -1136,10 +1136,15 @@ void display_editroom(void) wprintf("
"); - /** print the tabbed dialog */ - wprintf("
\n"); /* end tabbed dialog */ + wprintf("" + ); + /* begin content of whatever tab is open now */ if (!strcmp(tab, "admin")) { diff --git a/webcit/tabs.c b/webcit/tabs.c index 6ef4bfde6..c87cf4a4c 100644 --- a/webcit/tabs.c +++ b/webcit/tabs.c @@ -1,17 +1,12 @@ /* * $Id$ + * */ -/** - * \defgroup TabUtils Utility functions for creating tabbed dialogs - * \ingroup WebcitDisplayItems - */ -/*@{*/ + #include "webcit.h" -/** - * \brief print tabbed dialog - * \param num_tabs how many tabs do we have? - * \param tabnames the headers of the tables +/* + * print tabbed dialog */ void tabbed_dialog(int num_tabs, char *tabnames[]) { int i; @@ -53,10 +48,12 @@ void tabbed_dialog(int num_tabs, char *tabnames[]) { wprintf("\n"); } -/** - * \brief print the tab-header - * \param tabnum number of the tab to print - * \param num_tabs total number oftabs to be printed +/* + * print the tab-header + * + * tabnum: number of the tab to print + * num_tabs: total number oftabs to be printed + * */ void begin_tab(int tabnum, int num_tabs) { wprintf("\n", tabnum, num_tabs); @@ -66,10 +63,11 @@ void begin_tab(int tabnum, int num_tabs) { ); } -/** - * \brief print the tab-footer - * \param tabnum number of the tab to print - * \param num_tabs total number of tabs to be printed +/* + * print the tab-footer + * tabnum: number of the tab to print + * num_tabs: total number of tabs to be printed + * */ void end_tab(int tabnum, int num_tabs) { wprintf("\n"); @@ -86,4 +84,3 @@ void end_tab(int tabnum, int num_tabs) { } -/*@}*/