summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-02-25 19:45:01 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-02-25 19:45:01 -0500
commit5b50bc8c0aaa294bc982deea626e6d1d303c1c23 (patch)
tree7bc43af7effb1c342a970e8d07520ef8c4f9c08b
parent4a05e8820f5ff376c7e6076aee0b2c2e2c9cc94c (diff)
downloadnextcloud-server-5b50bc8c0aaa294bc982deea626e6d1d303c1c23.tar.gz
nextcloud-server-5b50bc8c0aaa294bc982deea626e6d1d303c1c23.zip
Fix Dropbox and Google ui
-rw-r--r--apps/files_external/js/dropbox.js8
-rw-r--r--apps/files_external/js/google.js14
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"]');