Added central place for modifying serverDomain
This commit is contained in:
@@ -74,7 +74,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type:"POST",
|
type:"POST",
|
||||||
url:url,
|
url:serverDomain+url,
|
||||||
cache:false,
|
cache:false,
|
||||||
data:data,
|
data:data,
|
||||||
traditional:true,
|
traditional:true,
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
var monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
var monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
||||||
|
|
||||||
|
var serverDomain = "";
|
||||||
|
|
||||||
function formatToTwoDigits(no) {
|
function formatToTwoDigits(no) {
|
||||||
if (no < 10)
|
if (no < 10)
|
||||||
return "0" + no;
|
return "0" + no;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ var GempLotrCommunication = Class.extend({
|
|||||||
failure:null,
|
failure:null,
|
||||||
|
|
||||||
init:function (url, failure) {
|
init:function (url, failure) {
|
||||||
this.url = url;
|
this.url = serverDomain + url;
|
||||||
this.failure = failure;
|
this.failure = failure;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type:"POST",
|
type:"POST",
|
||||||
url:url,
|
url:serverDomain+url,
|
||||||
cache:false,
|
cache:false,
|
||||||
data:data,
|
data:data,
|
||||||
traditional:true,
|
traditional:true,
|
||||||
|
|||||||
Reference in New Issue
Block a user