aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/admin.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-02-28 14:54:10 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-02-28 14:54:10 +0100
commit15d1df055b093ecce0c5ae52561dd73584145c7c (patch)
tree4f2b10bacfa5371e3f2a53122a3165bf94114d01 /apps/files/js/admin.js
parent65843e245996c9ecfd167be2b520bb917b32aa7e (diff)
parentdd32091016481b0b6845e03ea87ce419b3cda19e (diff)
downloadnextcloud-server-15d1df055b093ecce0c5ae52561dd73584145c7c.tar.gz
nextcloud-server-15d1df055b093ecce0c5ae52561dd73584145c7c.zip
Merge branch 'master' into display-share-owner-master
Conflicts: apps/files_sharing/lib/cache.php
Diffstat (limited to 'apps/files/js/admin.js')
-rw-r--r--apps/files/js/admin.js19
1 files changed, 11 insertions, 8 deletions
diff --git a/apps/files/js/admin.js b/apps/files/js/admin.js
index f735079fcbe..842b73c0cae 100644
--- a/apps/files/js/admin.js
+++ b/apps/files/js/admin.js
@@ -8,19 +8,22 @@
*
*/
-function switchPublicFolder()
-{
+function switchPublicFolder() {
var publicEnable = $('#publicEnable').is(':checked');
- var sharingaimGroup = $('input:radio[name=sharingaim]'); //find all radiobuttons of that group
+ // find all radiobuttons of that group
+ var sharingaimGroup = $('input:radio[name=sharingaim]');
$.each(sharingaimGroup, function(index, sharingaimItem) {
- sharingaimItem.disabled = !publicEnable; //set all buttons to the correct state
+ // set all buttons to the correct state
+ sharingaimItem.disabled = !publicEnable;
});
}
-$(document).ready(function(){
- switchPublicFolder(); // Execute the function after loading DOM tree
- $('#publicEnable').click(function(){
- switchPublicFolder(); // To get rid of onClick()
+$(document).ready(function() {
+ // Execute the function after loading DOM tree
+ switchPublicFolder();
+ $('#publicEnable').click(function() {
+ // To get rid of onClick()
+ switchPublicFolder();
});
$('#allowZipDownload').bind('change', function() {