diff options
author | Hans Bakker <hansmbakker@gmail.com> | 2011-07-08 18:56:20 +0200 |
---|---|---|
committer | Hans Bakker <hansmbakker@gmail.com> | 2011-07-08 18:56:20 +0200 |
commit | 76aceb99709ac594a1e736b913de7e916650631c (patch) | |
tree | 5b2671746c8b30d596a8fc850039e3462a0d52ce /files/templates/admin.php | |
parent | 47993fe29a6a7837e39b1e24e03c3b4ac9d7f794 (diff) | |
download | nextcloud-server-76aceb99709ac594a1e736b913de7e916650631c.tar.gz nextcloud-server-76aceb99709ac594a1e736b913de7e916650631c.zip |
Changed the js code for the files admin section to jQuery
Diffstat (limited to 'files/templates/admin.php')
-rw-r--r-- | files/templates/admin.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/files/templates/admin.php b/files/templates/admin.php index 4dde9c510c4..9564076501c 100644 --- a/files/templates/admin.php +++ b/files/templates/admin.php @@ -1,11 +1,11 @@ <script type="text/javascript"> function switchPublicFolder() { - var publicEnable = document.forms['filesForm'].elements['publicEnable'].checked; - var sharingaimGroup = document.forms['filesForm'].elements['sharingaim']; - for(i=0;i<sharingaimGroup.length;i++) { - sharingaimGroup[i].disabled = !publicEnable; - } + var publicEnable = $('#publicEnable').is(':checked'); + var sharingaimGroup = $('input:radio[name=sharingaim]'); + $.each(sharingaimGroup, function(index, sharingaimItem) { + sharingaimItem.disabled = !publicEnable; + }); } </script> <form name="filesForm" action='#' method='post'> |