Fixes to run from sub-directory.

This commit is contained in:
Oleg Sh
2019-06-29 18:10:07 +02:00
parent 2394894f72
commit 5e9431f33a
5 changed files with 34 additions and 13 deletions

View File

@@ -69,7 +69,7 @@ NeedAlgorithm.prototype.result = function(resultCallback)
console.log("Vote" + this["voteIndex"]);
$.ajax({
type: "GET",
url: "/cgi-bin/vote.php?index=" + this["voteIndex"],
url: "/" + SiteDir + "cgi-bin/vote.php?index=" + this["voteIndex"],
dataType: "text"
});
$("#voteDialog").dialog('close');