summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorRoss Nicoll <jrn@jrn.me.uk>2015-01-14 17:21:39 +0000
committerRoss Nicoll <jrn@jrn.me.uk>2015-01-14 17:21:39 +0000
commit7620af75508fea22790adc1cd56c26b973646af7 (patch)
tree3483d098f0f315daed641ec81f0c32d2f5a084d9 /apps/files_external/js
parent02c6b72e2514b12cc4392e037c0977b70566cea3 (diff)
downloadnextcloud-server-7620af75508fea22790adc1cd56c26b973646af7.tar.gz
nextcloud-server-7620af75508fea22790adc1cd56c26b973646af7.zip
Updated Dropbox and Google UI Javascript to create input elements instead of anchor.
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/dropbox.js5
-rw-r--r--apps/files_external/js/google.js5
2 files changed, 7 insertions, 3 deletions
diff --git a/apps/files_external/js/dropbox.js b/apps/files_external/js/dropbox.js
index 6baaabe11b6..2880e910f2c 100644
--- a/apps/files_external/js/dropbox.js
+++ b/apps/files_external/js/dropbox.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();
}
diff --git a/apps/files_external/js/google.js b/apps/files_external/js/google.js
index 068c2c13c66..b9a5e66b800 100644
--- a/apps/files_external/js/google.js
+++ b/apps/files_external/js/google.js
@@ -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();
}