Skip to content
Snippets Groups Projects

Routing Configuration with index.php

Merged Muhammad Iqbal Al Khowarizmi requested to merge temp-branch into master
Compare and
23 files
+ 363
331
Preferences
Compare changes
Files
23
+ 4
4
@@ -14,7 +14,7 @@ function makeOrder() {
var data = "id="+customerID+"&pickup="+orderPickup+"&destination="+orderDestination+"&driver="+orderPreferredDriver;
if (orderPickup.trim() == "" || orderDestination.trim() == "") {
alert("Sorce and destination is required!");
alert("Source and destination is required!");
return;
}
@@ -31,7 +31,7 @@ function makeOrder() {
}
};
xhttp.open("POST", "/main/order/new", true);
xhttp.open("POST", "/index.php/main/order/new", true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send(data);
}
@@ -144,11 +144,11 @@ function completeOrder(id) {
alert("Fail completing your order");
} else {
alert("Thanks for your order :D");
window.location.href = "/main/order?u="+customerID;
window.location.href = "/index.php/main/order?u="+customerID;
}
}
};
xhttp.open("POST", "/main/order/finish?u", true);
xhttp.open("POST", "/index.php/main/order/finish?u", true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send(data);