[-] MO : Fix rand parameter in favorite module js
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
$('document').ready(function(){
|
$('document').ready(function(){
|
||||||
$('#favoriteproducts_block_extra_add').click(function(){
|
$('#favoriteproducts_block_extra_add').click(function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: favorite_products_url_add + '?rand=' + new Date().getTime(),
|
url: favorite_products_url_add + '&rand=' + new Date().getTime(),
|
||||||
type: "POST",
|
type: "POST",
|
||||||
headers: { "cache-control": "no-cache" },
|
headers: { "cache-control": "no-cache" },
|
||||||
data: {
|
data: {
|
||||||
@@ -20,7 +20,7 @@ $('document').ready(function(){
|
|||||||
});
|
});
|
||||||
$('#favoriteproducts_block_extra_remove').click(function(){
|
$('#favoriteproducts_block_extra_remove').click(function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: favorite_products_url_remove + '?rand=' + new Date().getTime(),
|
url: favorite_products_url_remove + '&rand=' + new Date().getTime(),
|
||||||
type: "POST",
|
type: "POST",
|
||||||
headers: { "cache-control": "no-cache" },
|
headers: { "cache-control": "no-cache" },
|
||||||
data: {
|
data: {
|
||||||
@@ -39,7 +39,7 @@ $('document').ready(function(){
|
|||||||
});
|
});
|
||||||
$('#favoriteproducts_block_extra_added').click(function(){
|
$('#favoriteproducts_block_extra_added').click(function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: favorite_products_url_remove + '?rand=' + new Date().getTime(),
|
url: favorite_products_url_remove + '&rand=' + new Date().getTime(),
|
||||||
type: "POST",
|
type: "POST",
|
||||||
headers: { "cache-control": "no-cache" },
|
headers: { "cache-control": "no-cache" },
|
||||||
data: {
|
data: {
|
||||||
@@ -58,7 +58,7 @@ $('document').ready(function(){
|
|||||||
});
|
});
|
||||||
$('#favoriteproducts_block_extra_removed').click(function(){
|
$('#favoriteproducts_block_extra_removed').click(function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: favorite_products_url_add + '?rand=' + new Date().getTime(),
|
url: favorite_products_url_add + '&rand=' + new Date().getTime(),
|
||||||
type: "POST",
|
type: "POST",
|
||||||
headers: { "cache-control": "no-cache" },
|
headers: { "cache-control": "no-cache" },
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
Reference in New Issue
Block a user