This website works better with JavaScript.
Home
Explore
Help
Sign In
writefreely
/
writefreely
mirror of
https://github.com/writefreely/writefreely.git
Watch
2
Star
0
Fork
0
Code
Issues
Releases
25
Wiki
Activity
Browse Source
Remove params from URL after loading admin panel
This ensures that refreshing the page doesn't include any past success / failure messages.
tags/v0.5.0
Matt Baer
5 years ago
parent
d2f89c6360
commit
573ce02739
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
templates/user/admin.tmpl
+ 4
- 0
templates/user/admin.tmpl
View File
@@ -183,6 +183,10 @@ function savePage(el) {
</div>
</div>
<script>
history.replaceState(null, "", "/admin"+window.location.hash);
</script>
{{template "footer" .}}
{{template "body-end" .}}
Write
Preview
Loading…
Cancel
Save