Updated Dropbox and Google UI Javascript to create input elements instead of anchor.
This commit is contained in:
parent
02c6b72e25
commit
7620af7550
|
@ -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…
Reference in New Issue