[-] BO : #PSTEST-931 : fix bug in AdminAccess

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13907 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-03-06 16:46:54 +00:00
parent 088a86df3c
commit b2457a4f4b
3 changed files with 36 additions and 39 deletions
@@ -48,8 +48,8 @@
var tabnumber = tout[4];
var table = 'table#table_'+id_profile;
perfect_access_js_gestion(this, perm, id_tab, tabsize, tabnumber, table);
perfect_access_js_gestion(this, perm, id_tab, tabsize, tabnumber, table, '{$id_tab_access}');
$.ajax({
url: "{$link->getAdminLink('AdminAccess')}",
cache: false,
@@ -62,7 +62,7 @@
submitAddAccess: '1',
action: 'updateAccess',
ajax: '1',
token: '{getAdminToken tab='AdminAccess'}',
token: '{getAdminToken tab='AdminAccess'}'
},
success : function(res,textStatus,jqXHR)
{
@@ -86,7 +86,7 @@
var id_module = tout[0];
var perm = tout[1];
var id_profile = tout[2];
var enabled = $(this).is(':checked')? 1 : 0;
var enabled = $(this).is(':checked') ? 1 : 0;
var table = 'table#table_module_'+id_profile;
if (id_module == -1)
@@ -110,7 +110,7 @@
changeModuleAccess: '1',
action: 'updateModuleAccess',
ajax: '1',
token: '{getAdminToken tab='AdminAccess'}',
token: '{getAdminToken tab='AdminAccess'}'
},
success : function(res,textStatus,jqXHR)
{