eout(window.location.href = "edit_page.html?file=" +
                            encodeURIComponent(res.path), 100);
                    } else {
                        notyf.error(res.msg);
                    }
                },
                error: function (res) {
                    loading.destroy();
                    notyf.error("{{ "NETWORK_ERROR" | gettext }}");
                }
            })
        }


    </script>
{% endblock javascripts %}
