Skip to content
Snippets Groups Projects
Commit 9dd21a7f authored by runemaster's avatar runemaster
Browse files

Previous/Next message button logic change.

parent ca0a0b0d
No related branches found
No related tags found
No related merge requests found
...@@ -111,14 +111,14 @@ if(template.hdr.thread_first!=0) { ...@@ -111,14 +111,14 @@ if(template.hdr.thread_first!=0) {
} }
} }
if(tmp!=undefined) if(tmp!=undefined)
template.nextlink='<a href="msg.ssjs?msg_sub='+sub+'&amp;message='+tmp+'">'+next_msg_html+'</a>'; template.prevlink='<a href="msg.ssjs?msg_sub='+sub+'&amp;message='+tmp+'">'+prev_msg_html+'</a>';
else else
template.nextlink=no_next_msg_html; template.prevlink=no_prev_msg_html;
tmp=find_np_message(template.idx.offset,false); tmp=find_np_message(template.idx.offset,false);
if(tmp!=undefined) if(tmp!=undefined)
template.prevlink='<a href="msg.ssjs?msg_sub='+sub+'&amp;message='+tmp+'">'+prev_msg_html+'</a>'; template.nextlink='<a href="msg.ssjs?msg_sub='+sub+'&amp;message='+tmp+'">'+next_msg_html+'</a>';
else else
template.prevlink=no_prev_msg_html; template.nextlink=no_next_msg_html;
write_template("header.inc"); write_template("header.inc");
load("../web/lib/topnav_html.ssjs"); load("../web/lib/topnav_html.ssjs");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment