also avoid classList for browser compatibility
parent
b9a909ad4d
commit
e6002e94e9
|
@ -16,7 +16,7 @@ object authorize {
|
|||
moreCss = cssTag("oauth"),
|
||||
moreJs = embedJsUnsafe(
|
||||
// ensure maximum browser compatibility
|
||||
"""setTimeout(function(){var el=document.getElementById('oauth-authorize');el.removeAttribute('disabled');el.classList.remove('disabled');}, 2000);"""
|
||||
"""setTimeout(function(){var el=document.getElementById('oauth-authorize');el.removeAttribute('disabled');el.setAttribute('class','button')}, 2000);"""
|
||||
)
|
||||
) {
|
||||
main(cls := "oauth box box-pad")(
|
||||
|
|
Loading…
Reference in New Issue