summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorBjörn Geiger2011-07-05 16:08:29 +0200
committerBjörn Geiger2011-07-05 16:08:29 +0200
commitc281dd0d2630aac40183a36437755b75d3c2e0af (patch)
treeea2ebcd5086d13c1327745087f8d64bbe8780c88 /public
parentdatetimepicker für EventAdd und EventEdit (diff)
downloadpoolctrl-c281dd0d2630aac40183a36437755b75d3c2e0af.tar.gz
poolctrl-c281dd0d2630aac40183a36437755b75d3c2e0af.tar.xz
poolctrl-c281dd0d2630aac40183a36437755b75d3c2e0af.zip
user.js gelöscht
Diffstat (limited to 'public')
-rw-r--r--public/media/js/script.js36
-rw-r--r--public/media/js/user.js38
2 files changed, 36 insertions, 38 deletions
diff --git a/public/media/js/script.js b/public/media/js/script.js
index ce87812..b7b64d3 100644
--- a/public/media/js/script.js
+++ b/public/media/js/script.js
@@ -1,4 +1,30 @@
$(document).ready(function() {
+ if($('.listelement .element').find('.dispnone').length >= 1){
+ $('.listelement .element').find('.dispnone').parent().find('.title')
+ .css('cursor','pointer')
+ .prepend("<span class='toggler'><img src='/media/img/right.png'></span> ")
+ .data('toggle','0');
+
+ $('.listelement .title').click(function(){
+ $(this).siblings('.dispnone').toggle();
+ if($(this).data('toggle') == '0'){
+ $(this).data('toggle','1');
+ $(this).find('.toggler img').attr('src','/media/img/down.png')
+ }
+ else{
+ $(this).data('toggle','0');
+ $(this).find('.toggler img').attr('src','/media/img/right.png')
+ }
+ });
+ }
+ $('.helpericon').click(function(){
+ $('.infobox').slideToggle('fast');
+ if($(this).data('info') == '1'){
+ $(this).data('info','0').attr('src','/media/img/bulb_off.png');
+ } else{
+ $(this).data('info','1').attr('src','/media/img/bulb_on.png');
+ }
+ });
path = window.location.pathname.split('/');
if (path[2] == 'person' && (path[3] == 'owndetails' || path[3] == 'edit' || path[3] == 'request') && path[4] != 'personID') {
mypath = '/' + path[1] + '/' + path[2] + '/owndetails';
@@ -15,3 +41,13 @@ $(document).ready(function() {
}
});
});
+
+function checkAllCheckBoxes(exceptions) {
+ $('input:checkbox').attr('checked','checked');
+ return;
+}
+
+function uncheckAllCheckBoxes(exceptions) {
+ $('input:checkbox').attr('checked','');
+ return;
+} \ No newline at end of file
diff --git a/public/media/js/user.js b/public/media/js/user.js
deleted file mode 100644
index 50cfb80..0000000
--- a/public/media/js/user.js
+++ /dev/null
@@ -1,38 +0,0 @@
-$(document).ready(function(){
- if($('.listelement .element').find('.dispnone').length >= 1){
- $('.listelement .element').find('.dispnone').parent().find('.title')
- .css('cursor','pointer')
- .prepend("<span class='toggler'><img src='/media/img/right.png'></span> ")
- .data('toggle','0');
-
- $('.listelement .title').click(function(){
- $(this).siblings('.dispnone').toggle();
- if($(this).data('toggle') == '0'){
- $(this).data('toggle','1');
- $(this).find('.toggler img').attr('src','/media/img/down.png')
- }
- else{
- $(this).data('toggle','0');
- $(this).find('.toggler img').attr('src','/media/img/right.png')
- }
- });
- }
- $('.helpericon').click(function(){
- $('.infobox').slideToggle('fast');
- if($(this).data('info') == '1'){
- $(this).data('info','0').attr('src','/media/img/bulb_off.png');
- } else{
- $(this).data('info','1').attr('src','/media/img/bulb_on.png');
- }
- });
-});
-
-function checkAllCheckBoxes(exceptions) {
- $('input:checkbox').attr('checked','checked');
- return;
-}
-
-function uncheckAllCheckBoxes(exceptions) {
- $('input:checkbox').attr('checked','');
- return;
-}