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