Finalize vcard editing:
[citadel.git] / webcit / tabs.c
index 0a31a0d96e66946d31365a04cadbe0a9dfbcacec..90dac77b0be8c8e7e5e614e2f57163510adc649d 100644 (file)
@@ -82,13 +82,6 @@ void end_tab(int tabnum, int num_tabs) {
        else {
                wc_printf("</div>\n");
                wc_printf("<!-- end tab %d of %d -->\n", tabnum, num_tabs);
-       
-               if (tabnum == num_tabs-1) {
-                       wc_printf("<script type=\"text/javascript\">"
-                               " Nifty(\"table#TheTabs td\", \"small transparent top\");"
-                               "</script>"
-                       );
-               }
        }
 }
 
@@ -205,18 +198,10 @@ void StrEndTab(StrBuf *Target, int tabnum, int num_tabs) {
                StrBufAppendPrintf(
                        Target, 
                        "</div>\n",
-                       "<!-- end tab %d of %d -->\n", tabnum, num_tabs);
-       
-               if (tabnum == num_tabs-1) {
-                       StrBufAppendBufPlain(
-                               Target, 
-                               HKEY(
-                                       "<script type=\"text/javascript\">"
-                                       " Nifty(\"table#TheTabs td\", \"small transparent top\");"
-                                       "</script>"), 0);
-               }
+                       "<!-- end tab %d of %d -->\n", tabnum, num_tabs
+               );
        }
-       if (HAVEBSTR("last_tabsel"))
+       if (havebstr("last_tabsel"))
        {
                StrBufAppendPrintf(Target, "<script type=\"text/javascript\">tabsel(%s);</script>", BSTR("last_tabsel"));
        }