Added central place for modifying serverDomain

This commit is contained in:
marcin.sciesinski
2019-08-16 13:31:25 -07:00
parent 57019c8898
commit 9da41ebef9
4 changed files with 5 additions and 3 deletions

View File

@@ -74,7 +74,7 @@
$.ajax({
type:"POST",
url:url,
url:serverDomain+url,
cache:false,
data:data,
traditional:true,

View File

@@ -1,5 +1,7 @@
var monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
var serverDomain = "";
function formatToTwoDigits(no) {
if (no < 10)
return "0" + no;

View File

@@ -3,7 +3,7 @@ var GempLotrCommunication = Class.extend({
failure:null,
init:function (url, failure) {
this.url = url;
this.url = serverDomain + url;
this.failure = failure;
},

View File

@@ -82,7 +82,7 @@
$.ajax({
type:"POST",
url:url,
url:serverDomain+url,
cache:false,
data:data,
traditional:true,