[-] BO : #PSTEST-95 : adding token

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11752 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-12-23 10:40:21 +00:00
parent 2a957e615a
commit a4d3d16156
2 changed files with 3 additions and 2 deletions
@@ -23,6 +23,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* 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'}" />
</a>
+2 -1
View File
@@ -113,7 +113,8 @@ function defaultProductAttribute(ids, token, parent)
{
$(this).attr('style', '');
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();