/*
* print tabbed dialog
*/
-void tabbed_dialog(int num_tabs, char *tabnames[]) {
+void tabbed_dialog(int num_tabs, const char *tabnames[]) {
int i;
StrBufAppendPrintf(WC->trailing_javascript,
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>"
- );
- }
}
}
( (i==0) ? "tab_cell_label" : "tab_cell_edit" ),
i
);
- StrBufAppendBuf(Target, tabnames[i], 0);
+ StrEscAppend(Target, tabnames[i], NULL, 0, 0);
StrBufAppendBufPlain(
Target,
HKEY(
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"));
}