Fix Dropbox and Google ui

This commit is contained in:
Michael Gapczynski 2013-02-25 19:45:01 -05:00
parent 4a05e8820f
commit 5b50bc8c0a
2 changed files with 11 additions and 11 deletions

View File

@ -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();

View File

@ -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"]');