Преглед на файлове

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 години
родител
ревизия
573ce02739
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. +4
    -0
      templates/user/admin.tmpl

+ 4
- 0
templates/user/admin.tmpl Целия файл

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

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

{{template "footer" .}}

{{template "body-end" .}}


Зареждане…
Отказ
Запис