summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-07 15:40:01 +0200
committerRobin Appelman <icewind@owncloud.com>2014-07-07 23:25:26 +0200
commit18f5f851600ba0ef98123ca64fd2accf7e07799e (patch)
treeddac35eabbb24018fb603ebbf5f658e7202cb645 /apps/files_external/js
parent19dedf3d61e6417104bc262b1c05bc28ceb4d91c (diff)
downloadnextcloud-server-18f5f851600ba0ef98123ca64fd2accf7e07799e.tar.gz
nextcloud-server-18f5f851600ba0ef98123ca64fd2accf7e07799e.zip
When changing the mountpoint of an external storage, ensure the old one is removed
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/settings.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 348fecf0648..be6860bab63 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -14,6 +14,7 @@ function updateStatus(statusEl, result){
OC.MountConfig={
saveStorage:function(tr, callback) {
var mountPoint = $(tr).find('.mountPoint input').val();
+ var oldMountPoint = $(tr).find('.mountPoint input').data('mountpoint');
if (mountPoint == '') {
return false;
}
@@ -80,9 +81,11 @@ OC.MountConfig={
classOptions: classOptions,
mountType: mountType,
applicable: applicable,
- isPersonal: isPersonal
+ isPersonal: isPersonal,
+ oldMountPoint: oldMountPoint
},
success: function(result) {
+ $(tr).find('.mountPoint input').data('mountpoint', mountPoint);
status = updateStatus(statusSpan, result);
if (callback) {
callback(status);
@@ -139,9 +142,11 @@ OC.MountConfig={
classOptions: classOptions,
mountType: mountType,
applicable: applicable,
- isPersonal: isPersonal
+ isPersonal: isPersonal,
+ oldMountPoint: oldMountPoint
},
success: function(result) {
+ $(tr).find('.mountPoint input').data('mountpoint', mountPoint);
status = updateStatus(statusSpan, result);
if (callback) {
callback(status);