// ajax process off adminaccess is now in the controller

This commit is contained in:
rGaillard
2011-11-23 10:01:22 +00:00
parent 5fe7ed23c2
commit a3aa513f77
5 changed files with 269 additions and 220 deletions
+10 -4
View File
@@ -51,7 +51,7 @@
perfect_access_js_gestion(this, perm, id_tab, tabsize, tabnumber, table);
$.ajax({
url: "ajax.php",
url: "{$link->getAdminLink('AdminAccess')}",
cache: false,
data : {
ajaxMode : '1',
@@ -59,7 +59,10 @@
id_profile: id_profile,
perm: perm,
enabled: enabled,
submitAddAccess: '1'
submitAddAccess: '1',
action: 'updateAccess',
ajax: '1',
token: '{getAdminToken tab='AdminAccess'}',
},
success : function(res,textStatus,jqXHR)
{
@@ -96,7 +99,7 @@
});
$.ajax({
url: "ajax.php",
url: "{$link->getAdminLink('AdminAccess')}",
cache: false,
data : {
ajaxMode: '1',
@@ -105,6 +108,9 @@
enabled: enabled,
id_profile: id_profile,
changeModuleAccess: '1',
action: 'updateModuleAccess',
ajax: '1',
token: '{getAdminToken tab='AdminAccess'}',
},
success : function(res,textStatus,jqXHR)
{
@@ -382,4 +388,4 @@
</div>
{/foreach}
</form>
</form>