]> source.dussan.org Git - nextcloud-server.git/commitdiff
This settings doesn't belong together
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 3 Jun 2014 18:44:55 +0000 (20:44 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Thu, 5 Jun 2014 13:44:56 +0000 (15:44 +0200)
Revert "make reshare settings foldable"

This reverts commit c01f196f723dcb3dea6947c821a70d4d80563bbd.

Conflicts:
settings/templates/admin.php

settings/js/admin.js
settings/templates/admin.php

index 8c7572fa394a3cf4dc65888e2585e3b11ee92c52..bc95c6a3dc52d2e058d6ec025ff48bb849d9c8f3 100644 (file)
@@ -83,9 +83,6 @@ $(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(){} );
index e6438da79881766613eb6280d269e9d24415bc06..f0b72d0956eae8d290c3c3cb1c3ca12b5eace1b2 100644 (file)
@@ -274,14 +274,16 @@ if (!$_['internetconnectionworking']) {
                                <input type="checkbox" name="shareapi_allow_resharing" id="allowResharing"
                                           value="1" <?php if ($_['allowResharing'] === 'yes') print_unescaped('checked="checked"'); ?> />
                                <label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/>
-                               <div id="resharingSettings" <?php ($_['allowResharing'] === 'yes') ? print_unescaped('class="indent"') : print_unescaped('class="hidden indent"');?>>
-                                       <input type="radio" name="shareapi_share_policy" id="sharePolicyGlobal"
-                                                   value="global" <?php if ($_['sharePolicy'] === 'global') print_unescaped('checked="checked"'); ?> />
-                                       <label for="sharePolicyGlobal"><?php p($l->t('Allow users to share with anyone')); ?></label><br/>
-                                       <input type="radio" name="shareapi_share_policy" id="sharePolicyGroupsOnly"
-                                                   value="groups_only" <?php if ($_['sharePolicy'] === 'groups_only') print_unescaped('checked="checked"'); ?> />
-                                       <label for="sharePolicyGroupsOnly"><?php p($l->t('Allow users to only share with users in their groups'));?></label><br/>
-                               </div>
+                       </td>
+               </tr>
+               <tr>
+                       <td <?php if ($_['shareAPIEnabled'] === 'no') print_unescaped('class="hidden"');?>>
+                               <input type="radio" name="shareapi_share_policy" id="sharePolicyGlobal"
+                                          value="global" <?php if ($_['sharePolicy'] === 'global') print_unescaped('checked="checked"'); ?> />
+                               <label for="sharePolicyGlobal"><?php p($l->t('Allow users to share with anyone')); ?></label><br/>
+                               <input type="radio" name="shareapi_share_policy" id="sharePolicyGroupsOnly"
+                                          value="groups_only" <?php if ($_['sharePolicy'] === 'groups_only') print_unescaped('checked="checked"'); ?> />
+                               <label for="sharePolicyGroupsOnly"><?php p($l->t('Allow users to only share with users in their groups'));?></label><br/>
                        </td>
                </tr>
                <tr>