]> source.dussan.org Git - nextcloud-server.git/commitdiff
Clear the mount point value for the new mount point row
authorMichael Gapczynski <mtgap@owncloud.com>
Fri, 29 Jun 2012 15:09:17 +0000 (11:09 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Fri, 29 Jun 2012 15:10:51 +0000 (11:10 -0400)
apps/files_external/js/settings.js

index 23d5c2f630105924c39a5cd7d946841a947f45da..1c366a79c7a63e0d6d19d7897a4f461c44ba0072 100644 (file)
@@ -73,7 +73,8 @@ $(document).ready(function() {
        
        $('#selectBackend').live('change', function() {
                var tr = $(this).parent().parent();
-               $('#externalStorage tbody').last().append($(tr).clone());
+               $('#externalStorage tbody').append($(tr).clone());
+               $('#externalStorage tbody tr').last().find('.mountPoint input').val('');
                var selected = $(this).find('option:selected').text();
                var backendClass = $(this).val();
                $(this).parent().text(selected);