From 1aa784bf7f97c7f9982b4cc6c36d28a7f83edcd8 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 13 Apr 2011 16:06:47 +0200 Subject: neue Rechte hinzugefĆ¼gt & Teil 3 --- public/media/css/user.css | 9 +++++ public/media/js/user.js | 86 +++-------------------------------------------- 2 files changed, 13 insertions(+), 82 deletions(-) (limited to 'public') diff --git a/public/media/css/user.css b/public/media/css/user.css index 8b16f52..48f61ec 100644 --- a/public/media/css/user.css +++ b/public/media/css/user.css @@ -21,6 +21,15 @@ text-align: center; } +fieldset legend{ + font-weight: bold; + font-size:14px; +} +fieldset { + border:none; + border-top:1px solid black; +} + #rights-element dl fieldset dt { width: 325px; } diff --git a/public/media/js/user.js b/public/media/js/user.js index 15c3075..26f4e80 100644 --- a/public/media/js/user.js +++ b/public/media/js/user.js @@ -21,89 +21,11 @@ $(document).ready(function(){ }); function checkAllCheckBoxes(exceptions) { - var elements = document.getElementsByTagName('input'); - if(!elements) { - return; - } - var countElements = elements.length; - var countExceptions; - if(exceptions) { - countExceptions = exceptions.length; - } else { - countExceptions = 0; - } - var foundException = false; - if(!countElements) { - if(elements.getAttribute('type') == 'checkbox') { - for(var j = 0; j < countExceptions; j++) { - if(elements.getAttribute('name') == exceptions[j]) { - foundException = true - break; - } - } - if(!foundException) { - elements.checked = true; - } - foundException = false; - } - } else { - for(var i = 0; i < countElements; i++) { - if(elements[i].getAttribute('type') == 'checkbox') { - for(var j = 0; j < countExceptions; j++) { - if(elements[i].getAttribute('name') == exceptions[j]) { - foundException = true - break; - } - } - if(!foundException) { - elements[i].checked = true; - } - foundException = false; - } - } - } + $('input:checkbox').attr('checked','checked'); + return; } function uncheckAllCheckBoxes(exceptions) { - var elements = document.getElementsByTagName('input'); - if(!elements) { - return; - } - var countElements = elements.length; - var countExceptions; - if(exceptions) { - countExceptions = exceptions.length; - } else { - countExceptions = 0; - } - var foundException = false; - if(!countElements) { - if(elements.getAttribute('type') == 'checkbox') { - for(var j = 0; j < countExceptions; j++) { - if(elements.getAttribute('name') == exceptions[j]) { - foundException = true - break; - } - } - if(!foundException) { - elements.checked = false; - } - foundException = false; - } - } else { - for(var i = 0; i < countElements; i++) { - if(elements[i].getAttribute('type') == 'checkbox') { - for(var j = 0; j < countExceptions; j++) { - if(elements[i].getAttribute('name') == exceptions[j]) { - foundException = true - break; - } - } - if(!foundException) { - elements[i].checked = false; - } - foundException = false; - } - } - } + $('input:checkbox').attr('checked',''); + return; } -- cgit v1.2.3-55-g7522