diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-03-12 16:27:31 +0000 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-03-12 18:51:02 +0100 |
commit | 680ec056dc8c4fb84b8300967bcc12db2a57f225 (patch) | |
tree | ebb7e3d3b8b7674e511e2c01f0cefc75306bf840 /apps/files_external/js | |
parent | ce94a998dd5a5801beef7874dd13752095e35de0 (diff) | |
download | nextcloud-server-680ec056dc8c4fb84b8300967bcc12db2a57f225.tar.gz nextcloud-server-680ec056dc8c4fb84b8300967bcc12db2a57f225.zip |
Implement priority on client side in hidden input
Diffstat (limited to 'apps/files_external/js')
-rw-r--r-- | apps/files_external/js/settings.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index b3567b7ebf5..44488db4bc3 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -333,6 +333,13 @@ GlobalStorageConfig.prototype = _.extend({}, StorageConfig.prototype, applicableGroups: null, /** + * Storage priority + * + * @type int + */ + priority: null, + + /** * Returns the data from this object * * @return {Array} JSON array of the data @@ -342,6 +349,7 @@ GlobalStorageConfig.prototype = _.extend({}, StorageConfig.prototype, return _.extend(data, { applicableUsers: this.applicableUsers, applicableGroups: this.applicableGroups, + priority: this.priority, }); } }); @@ -546,6 +554,8 @@ MountConfigListView.prototype = { highlightInput(newElement); $td.append(newElement); }); + var priorityEl = $('<input type="hidden" class="priority" value="' + parameters['priority'] + '" />'); + $tr.append(priorityEl); if (parameters['custom'] && $el.find('tbody tr.'+backendClass.replace(/\\/g, '\\\\')).length === 1) { OC.addScript('files_external', parameters['custom']); } @@ -627,6 +637,8 @@ MountConfigListView.prototype = { storage.applicableUsers = users; storage.applicableGroups = groups; + + storage.priority = $tr.find('input.priority').val(); } return storage; |