Current oav website
This commit is contained in:
7
dotclear._no/plugins/pages/_users_actions.js
Executable file
7
dotclear._no/plugins/pages/_users_actions.js
Executable file
@ -0,0 +1,7 @@
|
||||
|
||||
jQuery.fn.updatePagesPermissionsForm=function(){return this.each(function(){var perms={};var re=/^perm\[(.+?)\]\[(.+?)\]$/;var e,prop;for(var i=0;i<this.elements.length;i++){e=this.elements[i];if(e.name==undefined){continue;}
|
||||
var prop;prop=e.name.match(re);if(!prop){continue;}
|
||||
if(perms[prop[1]]==undefined){perms[prop[1]]={};}
|
||||
perms[prop[1]][prop[2]]=e;if(prop[2]=='admin'){if(e.checked){admin(e,perms,re);}
|
||||
$(e).click(function(){admin(this,perms,re);});}}
|
||||
function admin(E,perms,re){P=E.name.match(re);perms[P[1]]['pages'].checked=E.checked;perms[P[1]]['pages'].disabled=E.checked;}});};$(function(){$('#permissions-form').updatePagesPermissionsForm();});
|
||||
Reference in New Issue
Block a user