diff options
author | Simon | 2011-04-07 16:25:05 +0200 |
---|---|---|
committer | Simon | 2011-04-07 16:25:05 +0200 |
commit | fe8f0591ad8d45f24a6e13ea7e73f91036848152 (patch) | |
tree | baca19b76841f6402987a30376d61e52c7fab603 /public | |
parent | arrow zum aufklappen hinzugefügt (diff) | |
download | pbs2-fe8f0591ad8d45f24a6e13ea7e73f91036848152.tar.gz pbs2-fe8f0591ad8d45f24a6e13ea7e73f91036848152.tar.xz pbs2-fe8f0591ad8d45f24a6e13ea7e73f91036848152.zip |
pfeile in allen übersichten hinzugefügt, script ausgelagert
Diffstat (limited to 'public')
-rw-r--r-- | public/media/js/user.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/public/media/js/user.js b/public/media/js/user.js new file mode 100644 index 0000000..488ab45 --- /dev/null +++ b/public/media/js/user.js @@ -0,0 +1,19 @@ +$(document).ready(function(){ + if($('.listelement .element').find('.dispnone').length >= 1){ + $(this).find('.title').css('cursor','pointer'); + $(this).find('.title').prepend("<span class='toggler'><img src='/media/img/right.png'></span> "); + $(this).find('.title').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') + } + }); + } +}); |