void tabbed_dialog(int num_tabs, char *tabnames[]) {
int i;
- wprintf("<script type=\"text/javascript\"> "
+ StrBufAppendPrintf(WC->trailing_javascript,
"var previously_selected_tab = '0'; "
"function tabsel(which_tab) { "
" if (which_tab == previously_selected_tab) { "
" $('tabtd'+which_tab).className = 'tab_cell_label'; "
" previously_selected_tab = which_tab; "
"} "
- "</script> \n"
);
wprintf("<table id=\"TheTabs\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"
void end_tab(int tabnum, int num_tabs) {
if (tabnum == num_tabs) {
- wprintf("</div>\n");
+ wprintf("</div> <!-- end of 'tabcontent_submit' div -->\n");
wprintf("<!-- end tab-common epilogue -->\n");
}