Skip to content
Snippets Groups Projects
Commit 9cf2f882 authored by echicken's avatar echicken
Browse files

Added appendURL value to paths for async queries. It's the annoying kludge that keeps on giving.

parent a0621ba3
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ if(user.alias != webIni.WebGuest) {
print("<span class='title'>Email</span><br /><br />");
print("<div class='border box msg'>");
print(format( "<a class='ulLink' onclick='addPost(\"http://%s:%s/%s/forum-async.ssjs\", \"%s\", \"%s\", \"%s\", \"%s\")'>Compose a new email</a>",
print(format( "<a class='ulLink' onclick='addPost(\"http://%s:%s%s/forum-async.ssjs\", \"%s\", \"%s\", \"%s\", \"%s\")'>Compose a new email</a>",
system.inet_addr, webIni.HTTPPort, webIni.appendURL, "mail", user.alias, user.name, ""
)
);
......@@ -18,9 +18,9 @@ if(user.alias != webIni.WebGuest) {
print("<div id='sub-mail' style='display:none;'></div>");
print("<div id='sub-mail-info' class='border box msg' style='display:none;'></div>");
print("<script type='text/javascript'>");
print("loadThreads('http://" + system.inet_addr + ":" + webIni.HTTPPort + "/forum-async.ssjs', 'mail', " + ((http_request.query.hasOwnProperty('thread'))?false:true) + ");");
print("loadThreads('http://" + system.inet_addr + ":" + webIni.HTTPPort + webIni.appendURL + "/forum-async.ssjs', 'mail', " + ((http_request.query.hasOwnProperty('thread'))?false:true) + ");");
if(http_request.query.hasOwnProperty('thread'))
print("loadThread('http://" + system.inet_addr + ":" + webIni.HTTPPort + "/forum-async.ssjs', 'mail', '" + http_request.query.thread + "', " + false + ");");
print("loadThread('http://" + system.inet_addr + ":" + webIni.HTTPPort + webIni.appendURL + "/forum-async.ssjs', 'mail', '" + http_request.query.thread + "', " + false + ");");
print("</script>");
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment