]> source.dussan.org Git - nextcloud-server.git/commitdiff
Hide the delete button on new mount point row
authorMichael Gapczynski <mtgap@owncloud.com>
Fri, 29 Jun 2012 15:04:35 +0000 (11:04 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Fri, 29 Jun 2012 15:10:51 +0000 (11:10 -0400)
apps/files_external/js/settings.js
apps/files_external/templates/settings.php

index 49b7710638e2b280cb656f4d7c42b9b7fee082ea..23d5c2f630105924c39a5cd7d946841a947f45da 100644 (file)
@@ -103,6 +103,7 @@ $(document).ready(function() {
                });
                $('.chz-select').chosen();
                $(tr).find('td').last().attr('class', 'remove');
+               $(tr).find('td').last().removeAttr('style');
                $(tr).removeAttr('id');
                $(this).remove();
        });
index 7777593d74d81a82c58eb1a64ef1a1b56735b595..069599d028feec32b3d4dd9b11f2d9c33c7f5320 100644 (file)
@@ -74,7 +74,7 @@
                                                        </select>
                                                </td>
                                        <?php endif; ?>
-                                       <td <?php if ($mountPoint != '') echo 'class="remove"'; ?>><img alt="<?php echo $l->t('Delete'); ?>" title="<?php echo $l->t('Delete'); ?>" class="svg action" src="<?php echo image_path('core', 'actions/delete.svg'); ?>" /></td>
+                                       <td <?php echo ($mountPoint != '') ? 'class="remove"' : 'style="visibility:hidden;"'; ?>><img alt="<?php echo $l->t('Delete'); ?>" title="<?php echo $l->t('Delete'); ?>" class="svg action" src="<?php echo image_path('core', 'actions/delete.svg'); ?>" /></td>
                                </tr>
                        <?php endforeach; ?>
                        </tbody>