fix the tab.c bug with IE : removed a useless div. The round
authorThierry Pasqualier <thierry@uncensored.citadel.org>
Wed, 24 Oct 2007 17:47:07 +0000 (17:47 +0000)
committerThierry Pasqualier <thierry@uncensored.citadel.org>
Wed, 24 Oct 2007 17:47:07 +0000 (17:47 +0000)
corners on the bottom on tab content don't still work...

webcit/tabs.c

index ef58f27bc0fcc65005e9637666d6dc1c9d6f78fd..6ef4bfde6b2b36250f0aa21196304bcea4605b39 100644 (file)
@@ -51,7 +51,6 @@ void tabbed_dialog(int num_tabs, char *tabnames[]) {
        }
 
        wprintf("</tr></table>\n");
-       wprintf("<div class=\"tabcontent\">");
 }
 
 /**
@@ -61,7 +60,7 @@ void tabbed_dialog(int num_tabs, char *tabnames[]) {
  */
 void begin_tab(int tabnum, int num_tabs) {
        wprintf("<!-- begin tab %d of %d -->\n", tabnum, num_tabs);
-       wprintf("<div id=\"tabdiv%d\" style=\"display:%s\">",
+       wprintf("<div id=\"tabdiv%d\" style=\"display:%s\" class=\"tabcontent\" >",
                tabnum,
                ( (tabnum == 0) ? "block" : "none" )
        );
@@ -77,13 +76,12 @@ void end_tab(int tabnum, int num_tabs) {
        wprintf("<!-- end tab %d of %d -->\n", tabnum, num_tabs);
 
        if (tabnum == num_tabs-1) {
-               wprintf("</div>\n");
+
                wprintf("<script type=\"text/javascript\">"
                        " Nifty(\"table#TheTabs td\", \"small transparent top\");"
-                       " Nifty(\"div.tabcontent\", \"big transparent bottom\");"
-                       " Nifty(\"div.tabcontent_submit\", \"big transparent bottom\");"
                        "</script>"
                );
+
        }
 }