Fix turbolinks loading being broken

This commit is contained in:
Andreas Nedbal 2020-05-09 01:57:20 +02:00
parent 07033545ee
commit d82b7006e8
1 changed files with 6 additions and 5 deletions

View File

@ -102,13 +102,14 @@ if window.URL? or window.webkitURL?
# theming
previewStyle = null
$(document).ready ->
previewStyle = document.createElement 'style'
previewStyle.setAttribute('data-turbolinks-track', 'false')
document.head.appendChild previewStyle
document.body.appendChild previewStyle
previewTimeout = null
$(document).ready ->
$('#update_theme .color').each ->
$this = $ this
this.value = '#' + getHexColorFromThemeValue(this.value)