Current oav website

This commit is contained in:
Charlie Root
2023-03-20 12:18:38 +01:00
commit a096ce07cf
3270 changed files with 261778 additions and 0 deletions

View File

@ -0,0 +1,6 @@
'use strict';jQuery.fn.updateBlogrollPermissionsForm=function(){return this.each(function(){let perms={};const re=/^perm\[(.+?)\]\[(.+?)\]$/;let e;let prop;for(let i=0;i<this.elements.length;i++){e=this.elements[i];if(e.name==undefined){continue;}
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).on('click',function(){admin(this,perms,re);});}}
function admin(E,perms,re){const P=E.name.match(re);perms[P[1]].blogroll.checked=E.checked;perms[P[1]].blogroll.disabled=E.checked;}});};$(function(){$('#permissions-form').updateBlogrollPermissionsForm();});

View File

@ -0,0 +1 @@
'use strict';$(function(){$('#links-list').sortable({'cursor':'move'});$('#links-list tr').on('mouseenter',function(){$(this).css({'cursor':'move'});}).on('mouseleave',function(){$(this).css({'cursor':'auto'});});$('#links-form').on('submit',function(){let order=[];$('#links-list tr td input.position').each(function(){order.push(this.name.replace(/^order\[([^\]]+)\]$/,'$1'));});$('input[name=links_order]')[0].value=order.join(',');return true;});$('#links-list tr td input.position').hide();$('#links-list tr td.handle').addClass('handler');dotclear.condSubmit('#links-form td input[type="checkbox"]','#links-form #remove-action');});