From 5b50bc8c0aaa294bc982deea626e6d1d303c1c23 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Mon, 25 Feb 2013 19:45:01 -0500 Subject: Fix Dropbox and Google ui --- apps/files_external/js/dropbox.js | 8 ++++---- apps/files_external/js/google.js | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/files_external/js/dropbox.js b/apps/files_external/js/dropbox.js index a8bbb7b02e2..957daeb4d1f 100644 --- a/apps/files_external/js/dropbox.js +++ b/apps/files_external/js/dropbox.js @@ -37,18 +37,18 @@ $(document).ready(function() { } }); - $('#externalStorage tbody').on('paste', 'tr.OC_Filestorage_Dropbox td', function() { + $('#externalStorage').on('paste', 'tbody tr.\\\\OC\\\\Files\\\\Storage\\\\Dropbox td', function() { var tr = $(this).parent(); setTimeout(function() { onDropboxInputsChange(tr); }, 20); }); - $('#externalStorage tbody').on('keyup', 'tr.OC_Filestorage_Dropbox td', function() { + $('#externalStorage').on('keyup', 'tbody tr.\\\\OC\\\\Files\\\\Storage\\\\Dropbox td', function() { onDropboxInputsChange($(this).parent()); }); - $('#externalStorage tbody').on('change', 'tr.OC_Filestorage_Dropbox .chzn-select', function() { + $('#externalStorage').on('change', 'tbody tr.\\\\OC\\\\Files\\\\Storage\\\\Dropbox .chzn-select', function() { onDropboxInputsChange($(this).parent().parent()); }); @@ -72,7 +72,7 @@ $(document).ready(function() { } } - $('.dropbox').on('click', function(event) { + $('#externalStorage').on('click', '.dropbox', function(event) { event.preventDefault(); var tr = $(this).parent().parent(); var app_key = $(this).parent().find('[data-parameter="app_key"]').val(); diff --git a/apps/files_external/js/google.js b/apps/files_external/js/google.js index 46333d89d68..7be1b338e90 100644 --- a/apps/files_external/js/google.js +++ b/apps/files_external/js/google.js @@ -1,11 +1,11 @@ $(document).ready(function() { - $('#externalStorage tbody tr.OC_Filestorage_Google').each(function(index, tr) { + $('#externalStorage tbody tr.\\\\OC\\\\Files\\\\Storage\\\\Google').each(function(index, tr) { setupGoogleRow(tr); }); - $('#selectBackend').on('change', function() { - if ($(this).val() == 'OC_Filestorage_Google') { + $('#externalStorage').on('change', '#selectBackend', function() { + if ($(this).val() == '\\OC\\Files\\Storage\\Google') { setupGoogleRow($('#externalStorage tbody>tr:last').prev('tr')); } }); @@ -43,18 +43,18 @@ $(document).ready(function() { } } - $('#externalStorage tbody').on('paste', 'tr.OC_Filestorage_Google td', function() { + $('#externalStorage').on('paste', 'tbody tr.\\\\OC\\\\Files\\\\Storage\\\\Google td', function() { var tr = $(this).parent(); setTimeout(function() { onGoogleInputsChange(tr); }, 20); }); - $('#externalStorage tbody').on('keyup', 'tr.OC_Filestorage_Google td', function() { + $('#externalStorage').on('keyup', 'tbody tr.\\\\OC\\\\Files\\\\Storage\\\\Google td', function() { onGoogleInputsChange($(this).parent()); }); - $('#externalStorage tbody').on('change', 'tr.OC_Filestorage_Google .chzn-select', function() { + $('#externalStorage').on('change', 'tbody tr.\\\\OC\\\\Files\\\\Storage\\\\Google .chzn-select', function() { onGoogleInputsChange($(this).parent().parent()); }); @@ -73,7 +73,7 @@ $(document).ready(function() { } } - $('.google').on('click', function(event) { + $('#externalStorage').on('click', '.google', function(event) { event.preventDefault(); var tr = $(this).parent().parent(); var configured = $(this).parent().find('[data-parameter="configured"]'); -- cgit v1.2.3