diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-20 12:06:08 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-20 12:06:08 +0100 |
commit | 05a8766cbc5826a89e52248994e3e2d0b6c57be5 (patch) | |
tree | 877fddf104b8723c0e38bc55b0371b151ff7b7ee /apps/files_external | |
parent | 702c27b0e63cddb21f483c0a69e899e08b42ec07 (diff) | |
download | nextcloud-server-05a8766cbc5826a89e52248994e3e2d0b6c57be5.tar.gz nextcloud-server-05a8766cbc5826a89e52248994e3e2d0b6c57be5.zip |
attach on() events to external storage table, dom events in the table will always bubble up here
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/js/settings.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index be24812869e..ac408786ff6 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -146,7 +146,7 @@ OC.MountConfig={ $(document).ready(function() { $('.chzn-select').chosen(); - $('#selectBackend').on('change', function() { + $('#externalStorage').on('change', '#selectBackend', function() { var tr = $(this).parent().parent(); $('#externalStorage tbody').append($(tr).clone()); $('#externalStorage tbody tr').last().find('.mountPoint input').val(''); @@ -243,11 +243,11 @@ $(document).ready(function() { OC.MountConfig.saveStorage($(this).parent().parent().parent()); }); - $('.applicable').on('change', '.chzn-select', function() { + $('#externalStorage').on('change', '.applicable .chzn-select', function() { OC.MountConfig.saveStorage($(this).parent().parent()); }); - $('td.remove>img').on('click', function() { + $('#externalStorage').on('click', 'td.remove>img', function() { var tr = $(this).parent().parent(); var mountPoint = $(tr).find('.mountPoint input').val(); if ( ! mountPoint) { |