diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-02-17 13:55:27 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-02-17 13:55:27 +0100 |
commit | c2c6caee93c491de9fa9a2e7c2eea036f4974e61 (patch) | |
tree | 7b9d975c1257d757593fc1f2c19ddac1dc16dde9 /apps/files_external/js | |
parent | 7b0f83b616246c5274b551ab46b923b0989c464e (diff) | |
download | nextcloud-server-c2c6caee93c491de9fa9a2e7c2eea036f4974e61.tar.gz nextcloud-server-c2c6caee93c491de9fa9a2e7c2eea036f4974e61.zip |
remove global credentials
Diffstat (limited to 'apps/files_external/js')
-rw-r--r-- | apps/files_external/js/settings.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 0837555f534..26df203091e 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -1338,33 +1338,6 @@ $(document).ready(function() { } }); - $('#global_credentials').on('submit', function() { - var $form = $(this); - var uid = $form.find('[name=uid]').val(); - var user = $form.find('[name=username]').val(); - var password = $form.find('[name=password]').val(); - var $submit = $form.find('[type=submit]'); - $submit.val(t('files_external', 'Saving...')); - $.ajax({ - type: 'POST', - contentType: 'application/json', - data: JSON.stringify({ - uid: uid, - user: user, - password: password - }), - url: OC.generateUrl('apps/files_external/globalcredentials'), - dataType: 'json', - success: function() { - $submit.val(t('files_external', 'Saved')); - setTimeout(function(){ - $submit.val(t('files_external', 'Save')); - }, 2500); - } - }); - return false; - }); - // global instance OCA.External.Settings.mountConfig = mountConfigListView; |