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

This commit is contained in:
Ross Nicoll 2015-01-14 17:21:39 +00:00
parent 02c6b72e25
commit 7620af7550
2 changed files with 7 additions and 3 deletions

View File

@ -65,7 +65,10 @@ $(document).ready(function() {
|| $(tr).find('.chzn-select').val() != null)) || $(tr).find('.chzn-select').val() != null))
{ {
if ($(tr).find('.dropbox').length == 0) { 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 { } else {
$(tr).find('.dropbox').show(); $(tr).find('.dropbox').show();
} }

View File

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