summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js/settings.js
diff options
context:
space:
mode:
authorJuan Pablo Villafáñez <jvillafanez@solidgear.es>2016-06-07 16:53:16 +0200
committerJuan Pablo Villafáñez <jvillafanez@solidgear.es>2016-06-07 16:53:16 +0200
commit8526bbb347a7b1ea18b225b4dda40029534636db (patch)
tree7600c448bbde5b8501ed35f23fbc8b50ede29de3 /apps/files_external/js/settings.js
parentf28f6ad2df59b8faa9589bffbc9d2c53b03a2840 (diff)
downloadnextcloud-server-8526bbb347a7b1ea18b225b4dda40029534636db.tar.gz
nextcloud-server-8526bbb347a7b1ea18b225b4dda40029534636db.zip
Add support to know where the storage test comes from
Diffstat (limited to 'apps/files_external/js/settings.js')
-rw-r--r--apps/files_external/js/settings.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 8d2cb52d67c..4d5a08a5de4 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -299,7 +299,8 @@ StorageConfig.prototype = {
mountPoint: this.mountPoint,
backend: this.backend,
authMechanism: this.authMechanism,
- backendOptions: this.backendOptions
+ backendOptions: this.backendOptions,
+ origin: 'settings'
};
if (this.id) {
data.id = this.id;
@@ -326,6 +327,7 @@ StorageConfig.prototype = {
$.ajax({
type: 'GET',
url: OC.generateUrl(this._url + '/{id}', {id: this.id}),
+ data: {'origin': 'settings'},
success: options.success,
error: options.error
});
@@ -908,6 +910,7 @@ MountConfigListView.prototype = _.extend({
$.ajax({
type: 'GET',
url: OC.generateUrl('apps/files_external/userglobalstorages'),
+ data: {'origin' : 'settings'},
contentType: 'application/json',
success: function(result) {
var onCompletion = jQuery.Deferred();