diff --git a/settings/js/admin.js b/settings/js/admin.js
index bc95c6a3dc..8c7572fa39 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -83,6 +83,9 @@ $(document).ready(function(){
$('#allowLinks').change(function() {
$("#publicLinkSettings").toggleClass('hidden', !this.checked);
});
+ $('#allowResharing').change(function() {
+ $("#resharingSettings").toggleClass('hidden', !this.checked);
+ });
$('#security').change(function(){
$.post(OC.filePath('settings','ajax','setsecurity.php'), { enforceHTTPS: $('#forcessl').val() },function(){} );
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index a86fe9c0ac..cb57bc0ce7 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -263,16 +263,14 @@ if (!$_['internetconnectionworking']) {
value="1" />
t('Allow users to share items shared with them again')); ?>
-
-
-