summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-26 11:10:05 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-26 11:10:05 +0100
commit37a2f8c6cbccce616ff44badba8a03cafbba9764 (patch)
tree3bdfd4728a66a14d12250b690877b9eb3b90d15b
parenta1600a289cda418565b42c6d3f667dd585d9947b (diff)
parent2b423e5a445718928b6f75e9acc33bfa339dc6ef (diff)
downloadnextcloud-server-37a2f8c6cbccce616ff44badba8a03cafbba9764.tar.gz
nextcloud-server-37a2f8c6cbccce616ff44badba8a03cafbba9764.zip
Merge pull request #7405 from owncloud/files-admin.js-style
coding style fixes, cut long lines, comments not on same lines, curly braces
-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() {