[-] BO : #PSTEST-95 : adding token
This commit is contained in:
@@ -23,6 +23,6 @@
|
|||||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
<a class="pointer edit" onclick="javascript:editProductAttribute('{$id}', '{getAdminToken tab='AdminProducts'}');" title="{l s='Modify this combination'}" ids="'{$id}'">
|
<a class="pointer edit" onclick="javascript:editProductAttribute('{$id}', '{getAdminToken tab='AdminProducts'}');" title="{l s='Modify this combination'}" ids="{$id}" token="{getAdminToken tab='AdminProducts'}">
|
||||||
<img src="../img/admin/edit.gif" alt="{l s='Modify this combination'}" />
|
<img src="../img/admin/edit.gif" alt="{l s='Modify this combination'}" />
|
||||||
</a>
|
</a>
|
||||||
@@ -113,7 +113,8 @@ function defaultProductAttribute(ids, token, parent)
|
|||||||
{
|
{
|
||||||
$(this).attr('style', '');
|
$(this).attr('style', '');
|
||||||
var ids = $(this).find('a.edit').attr('ids');
|
var ids = $(this).find('a.edit').attr('ids');
|
||||||
$(this).find('a.edit').after("<a title=\"Default\" onclick=\"javascript:defaultProductAttribute("+ids+", 'b3a62213044bad81d091b225780ba544', $(this).parent('td').parent('tr'));\" class=\"pointer default\"><img alt=\"Default\" src=\"../img/admin/asterisk.gif\"></a>");
|
var token = $(this).find('a.edit').attr('token');
|
||||||
|
$(this).find('a.edit').after("<a title=\"Default\" onclick=\"javascript:defaultProductAttribute('"+ids+"', '"+token+"', $(this).parent('td').parent('tr'));\" class=\"pointer default\"><img alt=\"Default\" src=\"../img/admin/asterisk.gif\"></a>");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
parent.find('a.default').hide();
|
parent.find('a.default').hide();
|
||||||
|
|||||||
Reference in New Issue
Block a user