From 34c8b1ac7732b4502beebea0dfeeaa8bac225550 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 13 Mar 2015 12:49:11 +0100 Subject: Mount options for ext storage are now passed around The mount options are now passed to the UI and stored in a hidden field. The ext storage controllers and services also know how to load/save them from the legacy config. --- apps/files_external/js/settings.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'apps/files_external/js') diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 44488db4bc3..ef64d087884 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -194,6 +194,13 @@ StorageConfig.prototype = { */ backendOptions: null, + /** + * Mount-specific options + * + * @type Object. + */ + mountOptions: null, + /** * Creates or saves the storage. * @@ -237,6 +244,9 @@ StorageConfig.prototype = { if (this.id) { data.id = this.id; } + if (this.mountOptions) { + data.mountOptions = this.mountOptions; + } return data; }, @@ -641,6 +651,11 @@ MountConfigListView.prototype = { storage.priority = $tr.find('input.priority').val(); } + var mountOptions = $tr.find('input.mountOptions').val(); + if (mountOptions) { + storage.mountOptions = JSON.parse(mountOptions); + } + return storage; }, -- cgit v1.2.3