From 05a8766cbc5826a89e52248994e3e2d0b6c57be5 Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Wed, 20 Feb 2013 12:06:08 +0100 Subject: attach on() events to external storage table, dom events in the table will always bubble up here --- apps/files_external/js/settings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files_external') 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) { -- cgit v1.2.3