diff options
author | Björn Geiger | 2011-04-13 17:08:42 +0200 |
---|---|---|
committer | Björn Geiger | 2011-04-13 17:08:42 +0200 |
commit | 15cd5c87327aab0759efbcba8e7144dc0a45cbdd (patch) | |
tree | be8709f4b52f2a6a78a71c68d9e9606dac769ef5 /application/modules/user | |
parent | Rechte in Group nächster Teil (diff) | |
download | pbs2-15cd5c87327aab0759efbcba8e7144dc0a45cbdd.tar.gz pbs2-15cd5c87327aab0759efbcba8e7144dc0a45cbdd.tar.xz pbs2-15cd5c87327aab0759efbcba8e7144dc0a45cbdd.zip |
Rechteboxen zusammengeklappt auch bei Add Role
Diffstat (limited to 'application/modules/user')
-rw-r--r-- | application/modules/user/views/scripts/role/add.phtml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/application/modules/user/views/scripts/role/add.phtml b/application/modules/user/views/scripts/role/add.phtml index 23d4c55..59c0dae 100644 --- a/application/modules/user/views/scripts/role/add.phtml +++ b/application/modules/user/views/scripts/role/add.phtml @@ -1,5 +1,19 @@ <h1>Add Role</h1> +<div>Click to expand the boxes</div> <?php $this->addForm->setAction($this->url()); echo $this->addForm; -?>
\ No newline at end of file +?> +<script> +$(document).ready(function(){ + $('fieldset').children('dl:gt(0)').hide(); + $('fieldset fieldset>legend').css('cursor','pointer'); + $('fieldset fieldset').click( + function(e){ + if($(e.target).context.nodeName == "LEGEND"){ + $(this).children('dl').slideToggle(); + } + }); + +}); +</script>
\ No newline at end of file |