[-] FO : #PSCFV-3121 - New JS vars baseUri. This vars must be used instead of baseDir for ajax queries.

This commit is contained in:
mDeflotte
2012-07-11 08:48:28 +00:00
parent 34c3d62826
commit 74cc18e080
9 changed files with 19 additions and 17 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ $(function(){ldelim}
//send the ajax request to the server
$.ajax({
type: 'POST',
url: baseDir + 'index.php',
url: baseUri,
async: true,
cache: false,
dataType : "json",
+1
View File
@@ -42,6 +42,7 @@
<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />
<script type="text/javascript">
var baseDir = '{$content_dir}';
var baseUri = '{$base_uri}';
var static_token = '{$static_token}';
var token = '{$token}';
var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};
+6 -6
View File
@@ -87,7 +87,7 @@ function changeAddressDelivery(obj)
{
$.ajax({
type: 'GET',
url: baseDir,
url: baseUri,
async: true,
cache: false,
dataType: 'json',
@@ -159,7 +159,7 @@ function changeAddressDelivery(obj)
$.ajax({
type: 'GET',
url: baseDir,
url: baseUri,
async: true,
cache: false,
dataType: 'json',
@@ -269,7 +269,7 @@ function deleteProductFromSummary(id)
id_address_delivery = parseInt(ids[3]);
$.ajax({
type: 'GET',
url: baseDir,
url: baseUri,
async: true,
cache: false,
dataType: 'json',
@@ -392,7 +392,7 @@ function upQuantity(id, qty)
id_address_delivery = parseInt(ids[3]);
$.ajax({
type: 'GET',
url: baseDir,
url: baseUri,
async: true,
cache: false,
dataType: 'json',
@@ -470,7 +470,7 @@ function downQuantity(id, qty)
{
$.ajax({
type: 'GET',
url: baseDir,
url: baseUri,
async: true,
cache: false,
dataType: 'json',
@@ -757,7 +757,7 @@ $(document).ready(function() {
$('#allow_seperated_package').live('click', function() {
$.ajax({
type: 'GET',
url: baseDir,
url: baseUri,
async: true,
cache: false,
data: 'controller=cart&ajax=true&allowSeperatedPackage&value='
+1 -1
View File
@@ -108,7 +108,7 @@ function sendOrderMessage ()
});
$.ajax({
type: "POST",
url: baseDir + "index.php?controller=order-detail",
url: baseUri + "index.php?controller=order-detail",
data: paramString,
success: function (msg){
$('#block-order-detail').fadeOut('slow', function() {
+1 -1
View File
@@ -103,7 +103,7 @@ function updateAddresses()
var idAddress_invoice = $('input[type=checkbox]#addressesAreEquals:checked').length == 1 ? idAddress_delivery : $('#id_address_invoice').val();
$.ajax({
type: 'POST',
url: baseDir,
url: baseUri,
async: true,
cache: false,
dataType : "json",
+1 -1
View File
@@ -89,7 +89,7 @@ function clearLocations(n)
function searchLocationsNear(center)
{
var radius = document.getElementById('radiusSelect').value;
var searchUrl = baseDir+'stores.php?ajax=1&latitude=' + center.lat() + '&longitude=' + center.lng() + '&radius=' + radius;
var searchUrl = baseUri+'?controller=stores&ajax=1&latitude=' + center.lat() + '&longitude=' + center.lng() + '&radius=' + radius;
downloadUrl(searchUrl, function(data) {
var xml = parseXml(data);
var markerNodes = xml.documentElement.getElementsByTagName('marker');