summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-07-04 17:16:02 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-07-04 17:18:36 +0200
commit5d61b85a1dace6ebb41025deaad019af8b3e5145 (patch)
tree1302e8d80c5942bf4bb741d8b8257b9ce26471da /apps/files_external/js
parentb2eac08ad3a279ab81c508929c68d947bedbc9da (diff)
downloadnextcloud-server-5d61b85a1dace6ebb41025deaad019af8b3e5145.tar.gz
nextcloud-server-5d61b85a1dace6ebb41025deaad019af8b3e5145.zip
allow users to upload ssl root certificates for the webdav client
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/settings.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 1c366a79c7a..0d942e7845b 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -1,4 +1,4 @@
-OC.MountConfig={
+OC.MountConfig={
saveStorage:function(tr) {
var mountPoint = $(tr).find('.mountPoint input').val();
if (mountPoint == '') {
@@ -68,7 +68,6 @@ OC.MountConfig={
}
$(document).ready(function() {
-
$('.chzn-select').chosen();
$('#selectBackend').live('change', function() {
@@ -116,8 +115,11 @@ $(document).ready(function() {
$('td.remove>img').live('click', function() {
var tr = $(this).parent().parent();
var mountPoint = $(tr).find('.mountPoint input').val();
- if (mountPoint == '') {
- return false;
+ if (!mountPoint) {
+ var row=this.parentNode.parentNode;
+ $.post(OC.filePath('files_external', 'ajax', 'removeRootCertificate.php'), { cert: row.id });
+ $(tr).remove();
+ return true;
}
if ($('#externalStorage').data('admin') === true) {
var isPersonal = false;