diff --git a/sys/main.go b/sys/main.go index c2bec1c..4c0116b 100644 --- a/sys/main.go +++ b/sys/main.go @@ -3,7 +3,7 @@ package sys const Name = "Tibula" -const Version = "17.9.6" +const Version = "17.9.7" var Options TypeConfig var Commands TypeCommand diff --git a/web/assets/static/js/tibula.js b/web/assets/static/js/tibula.js index 96ea596..5d3626b 100644 --- a/web/assets/static/js/tibula.js +++ b/web/assets/static/js/tibula.js @@ -100,7 +100,6 @@ document.getElementById('ejaForm').addEventListener('submit', function(event) { window.onload = function() { if (document.getElementsByName('ejaGoogleSsoId').length > 0) { - document.body.innerHTML+='
'; google.accounts.id.initialize({ client_id: document.getElementsByName('ejaGoogleSsoId')[0].value, callback: function(e) { @@ -108,7 +107,6 @@ window.onload = function() { document.getElementById('ejaForm').submit() } }) - google.accounts.id.renderButton(document.getElementById("google"),{ theme: "outline", size: "large", width: document.getElementById('google').style.width }) - document.getElementsByName('ejaAction')[0].style.width=document.getElementById('google').style.width + google.accounts.id.renderButton(document.getElementById("google"),{ width: document.getElementsByName('ejaAction')[0].offsetWidth }) } } diff --git a/web/assets/templates/Login.html b/web/assets/templates/Login.html index 04229d2..e204c48 100644 --- a/web/assets/templates/Login.html +++ b/web/assets/templates/Login.html @@ -7,15 +7,16 @@