forked from MarseyWorld/MarseyWorld
fsd
parent
16823faeb5
commit
31324dad83
|
@ -1,5 +1,5 @@
|
|||
{% if comment_info and not request.full_path.endswith('#context') %}
|
||||
<script data-cfasync="false">
|
||||
<script>
|
||||
history.pushState(null, null, '#context');
|
||||
</script>
|
||||
{% endif %}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
{% block title %}
|
||||
|
||||
{% if success %}
|
||||
<script data-cfasync="false">
|
||||
<script>
|
||||
history.pushState(null, null, '{{p.permalink | full_link}}');
|
||||
window.localStorage.setItem("post_title", "")
|
||||
window.localStorage.setItem("post_text", "")
|
||||
|
|
|
@ -194,7 +194,7 @@
|
|||
</div>
|
||||
{% endblock %}
|
||||
|
||||
<script data-cfasync="false">
|
||||
<script>
|
||||
let fetched_title = window.localStorage.getItem("post_title")
|
||||
document.getElementById('post-title').value = fetched_title
|
||||
let fetched_text = window.localStorage.getItem("post_text")
|
||||
|
|
Loading…
Reference in New Issue