Fix turbolinks loading being broken
This commit is contained in:
parent
07033545ee
commit
d82b7006e8
|
@ -102,13 +102,14 @@ if window.URL? or window.webkitURL?
|
||||||
|
|
||||||
# theming
|
# theming
|
||||||
|
|
||||||
previewStyle = document.createElement 'style'
|
previewStyle = null
|
||||||
previewStyle.setAttribute('data-turbolinks-track', 'false')
|
|
||||||
document.head.appendChild previewStyle
|
|
||||||
|
|
||||||
previewTimeout = null
|
|
||||||
|
|
||||||
$(document).ready ->
|
$(document).ready ->
|
||||||
|
previewStyle = document.createElement 'style'
|
||||||
|
document.body.appendChild previewStyle
|
||||||
|
|
||||||
|
previewTimeout = null
|
||||||
|
|
||||||
$('#update_theme .color').each ->
|
$('#update_theme .color').each ->
|
||||||
$this = $ this
|
$this = $ this
|
||||||
this.value = '#' + getHexColorFromThemeValue(this.value)
|
this.value = '#' + getHexColorFromThemeValue(this.value)
|
||||||
|
|
Loading…
Reference in New Issue