|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
$(document).ready(function() { |
|
|
|
|
|
|
|
|
|
$('#externalStorage tbody tr.OC_Filestorage_Google').each(function() { |
|
|
|
|
$('#externalStorage tbody tr.\\\\OC\\\\Files\\\\Storage\\\\Google').each(function() { |
|
|
|
|
var configured = $(this).find('[data-parameter="configured"]'); |
|
|
|
|
if ($(configured).val() == 'true') { |
|
|
|
|
$(this).find('.configuration') |
|
|
|
|
@ -34,7 +34,8 @@ $(document).ready(function() { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$('#externalStorage tbody tr').live('change', function() { |
|
|
|
|
if ($(this).hasClass('OC_Filestorage_Google') && $(this).find('[data-parameter="configured"]').val() != 'true') { |
|
|
|
|
console.log('hello'); |
|
|
|
|
if ($(this).hasClass('\\\\OC\\\\Files\\\\Storage\\\\Google') && $(this).find('[data-parameter="configured"]').val() != 'true') { |
|
|
|
|
if ($(this).find('.mountPoint input').val() != '') { |
|
|
|
|
if ($(this).find('.google').length == 0) { |
|
|
|
|
$(this).find('.configuration').append('<a class="button google">'+t('files_external', 'Grant access')+'</a>'); |
|
|
|
|
@ -45,7 +46,7 @@ $(document).ready(function() { |
|
|
|
|
|
|
|
|
|
$('#externalStorage tbody tr .mountPoint input').live('keyup', function() { |
|
|
|
|
var tr = $(this).parent().parent(); |
|
|
|
|
if ($(tr).hasClass('OC_Filestorage_Google') && $(tr).find('[data-parameter="configured"]').val() != 'true' && $(tr).find('.google').length > 0) { |
|
|
|
|
if ($(tr).hasClass('\\\\OC\\\\Files\\\\Storage\\\\Google') && $(tr).find('[data-parameter="configured"]').val() != 'true' && $(tr).find('.google').length > 0) { |
|
|
|
|
if ($(this).val() != '') { |
|
|
|
|
$(tr).find('.google').show(); |
|
|
|
|
} else { |
|
|
|
|
|