Parcourir la 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 il y a 5 ans
Parent
révision
573ce02739
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. +4
    -0
      templates/user/admin.tmpl

+ 4
- 0
templates/user/admin.tmpl Voir le fichier

@@ -183,6 +183,10 @@ function savePage(el) {
</div>
</div>

<script>
history.replaceState(null, "", "/admin"+window.location.hash);
</script>

{{template "footer" .}}

{{template "body-end" .}}


Chargement…
Annuler
Enregistrer