// Fixed #PSCFV-1593 : SSL
This commit is contained in:
@@ -30,10 +30,10 @@ $('document').ready(function()
|
|||||||
$('img[rel^=ajax_id_favoriteproduct_]').click(function()
|
$('img[rel^=ajax_id_favoriteproduct_]').click(function()
|
||||||
{
|
{
|
||||||
var idFavoriteProduct = $(this).attr('rel').replace('ajax_id_favoriteproduct_', '');
|
var idFavoriteProduct = $(this).attr('rel').replace('ajax_id_favoriteproduct_', '');
|
||||||
var parent = $(this).parent().parent();
|
var parent = $(this).parent().parent();
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'])}",
|
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {
|
data: {
|
||||||
'id_product': idFavoriteProduct
|
'id_product': idFavoriteProduct
|
||||||
@@ -75,7 +75,7 @@ $('document').ready(function()
|
|||||||
{else}
|
{else}
|
||||||
<p class="warning">{l s='No favorite products yet.' mod='favoriteproducts'}</p>
|
<p class="warning">{l s='No favorite products yet.' mod='favoriteproducts'}</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<ul class="footer_links">
|
<ul class="footer_links">
|
||||||
<li class="fleft"><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account' mod='favoriteproducts'}</a></li>
|
<li class="fleft"><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account' mod='favoriteproducts'}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
$('document').ready(function(){
|
$('document').ready(function(){
|
||||||
$('#favoriteproducts_block_extra_add').click(function(){
|
$('#favoriteproducts_block_extra_add').click(function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'])}",
|
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], true)}",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {
|
data: {
|
||||||
"id_product": {$smarty.get.id_product}
|
"id_product": {$smarty.get.id_product}
|
||||||
@@ -39,14 +39,14 @@ $('document').ready(function(){
|
|||||||
$('#favoriteproducts_block_extra_add').slideUp(function() {
|
$('#favoriteproducts_block_extra_add').slideUp(function() {
|
||||||
$('#favoriteproducts_block_extra_added').slideDown("slow");
|
$('#favoriteproducts_block_extra_added').slideDown("slow");
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#favoriteproducts_block_extra_remove').click(function(){
|
$('#favoriteproducts_block_extra_remove').click(function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'])}",
|
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {
|
data: {
|
||||||
"id_product": {$smarty.get.id_product}
|
"id_product": {$smarty.get.id_product}
|
||||||
@@ -64,7 +64,7 @@ $('document').ready(function(){
|
|||||||
});
|
});
|
||||||
$('#favoriteproducts_block_extra_added').click(function(){
|
$('#favoriteproducts_block_extra_added').click(function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'])}",
|
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {
|
data: {
|
||||||
"id_product": {$smarty.get.id_product}
|
"id_product": {$smarty.get.id_product}
|
||||||
@@ -82,7 +82,7 @@ $('document').ready(function(){
|
|||||||
});
|
});
|
||||||
$('#favoriteproducts_block_extra_removed').click(function(){
|
$('#favoriteproducts_block_extra_removed').click(function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'])}",
|
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], true)}",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {
|
data: {
|
||||||
"id_product": {$smarty.get.id_product}
|
"id_product": {$smarty.get.id_product}
|
||||||
|
|||||||
Reference in New Issue
Block a user