Updated Dropbox and Google UI Javascript to create input elements instead of anchor.

remotes/origin/log-external-deletes
Ross Nicoll 10 years ago
parent 02c6b72e25
commit 7620af7550
  1. 5
      apps/files_external/js/dropbox.js
  2. 5
      apps/files_external/js/google.js

@ -65,7 +65,10 @@ $(document).ready(function() {
|| $(tr).find('.chzn-select').val() != null))
{
if ($(tr).find('.dropbox').length == 0) {
$(config).append('<a class="button dropbox">'+t('files_external', 'Grant access')+'</a>');
$(config).append($(document.createElement('input'))
.addClass('button dropbox')
.attr('type', 'button')
.attr('value', t('files_external', 'Grant access')));
} else {
$(tr).find('.dropbox').show();
}

@ -85,8 +85,9 @@ $(document).ready(function() {
|| $(tr).find('.chzn-select').val() != null))
{
if ($(tr).find('.google').length == 0) {
$(config).append($('<a/>').addClass('button google')
.text(t('files_external', 'Grant access')));
$(config).append($(document.createElement('input')).addClass('button google')
.attr('type', 'button')
.attr('value', t('files_external', 'Grant access')));
} else {
$(tr).find('.google').show();
}

Loading…
Cancel
Save