if (!WC->is_ajax) { /* only supply the script during the initial page load */
StrBufAppendPrintf(WC->trailing_javascript,
if (!WC->is_ajax) { /* only supply the script during the initial page load */
StrBufAppendPrintf(WC->trailing_javascript,
- " function moremsgs(target_div, gt, maxmsgs, sortorder) { \n"
+ " function moremsgs(target_div, subcmd_name, subcmd_value, maxmsgs, sortorder) { \n"
" + '&is_summary=0&SortOrder=' + sortorder + '&is_ajax=1' \n"
" + '&r=' + CtdlRandomString(); \n"
" new Ajax.Updater(target_div, 'readgt', \n"
" + '&is_summary=0&SortOrder=' + sortorder + '&is_ajax=1' \n"
" + '&r=' + CtdlRandomString(); \n"
" new Ajax.Updater(target_div, 'readgt', \n"
wc_printf("<div id=\"%s\">", morediv);
/* if (Stat->nummsgs > 0) { */
if (Stat->nummsgs >= Stat->maxmsgs) {
wc_printf("<div id=\"%s\">", morediv);
/* if (Stat->nummsgs > 0) { */
if (Stat->nummsgs >= Stat->maxmsgs) {
- wc_printf("<a href=\"javascript:moremsgs('%s', %ld, %ld, %d );\">",
+ wc_printf("<a href=\"javascript:moremsgs('%s', 'gt', %ld, %ld, %d );\">",
- wc_printf("<a href=\"javascript:moremsgs('%s', %ld, %ld, %d );\">",
+ wc_printf("<a href=\"javascript:moremsgs('%s', 'gt', %ld, %ld, %d );\">",