summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-06-29 11:09:17 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-06-29 11:10:51 -0400
commit2d49a491fb740625ef56f6791669584e5ae49927 (patch)
tree7dcec3f5b0cb3d8c63a9ad3b3bcc4bdbb3ab78f4 /apps/files_external
parentf311c2a2ff0155a457097346b6b7011e0db4df64 (diff)
downloadnextcloud-server-2d49a491fb740625ef56f6791669584e5ae49927.tar.gz
nextcloud-server-2d49a491fb740625ef56f6791669584e5ae49927.zip
Clear the mount point value for the new mount point row
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/js/settings.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 23d5c2f6301..1c366a79c7a 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -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);