summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js/settings.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 15:40:01 +0200
commit128c22606397ef8be2f5babd8010032bde1479b0 (patch)
treeb0925c3c14249cefb21795f960a141ca7d14f583 /apps/files_external/js/settings.js
parentb271e05bc9066157a7af62062ad2d47e73dd54b7 (diff)
downloadnextcloud-server-128c22606397ef8be2f5babd8010032bde1479b0.tar.gz
nextcloud-server-128c22606397ef8be2f5babd8010032bde1479b0.zip
When changing the mountpoint of an external storage, ensure the old one is removed
Diffstat (limited to 'apps/files_external/js/settings.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);