summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorSimon2011-04-13 16:06:47 +0200
committerSimon2011-04-13 16:06:47 +0200
commit1aa784bf7f97c7f9982b4cc6c36d28a7f83edcd8 (patch)
tree05f40ad9d4306ead9abcdc1e71e15be378931f76 /public
parentEinrückung und Layoutfehler korrigiert (diff)
downloadpbs2-1aa784bf7f97c7f9982b4cc6c36d28a7f83edcd8.tar.gz
pbs2-1aa784bf7f97c7f9982b4cc6c36d28a7f83edcd8.tar.xz
pbs2-1aa784bf7f97c7f9982b4cc6c36d28a7f83edcd8.zip
neue Rechte hinzugefügt & Teil 3
Diffstat (limited to 'public')
-rw-r--r--public/media/css/user.css9
-rw-r--r--public/media/js/user.js86
2 files changed, 13 insertions, 82 deletions
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;
}