              notyf.error("{{ "PAGE_EXIST" | gettext }}");
                    return;
                }
            }
            loading.show();
            $.ajax({
                url: '/api/new_page/',
                method: 'post',
                data: {"file": new_name},
                dataType: 'JSON',
                success: function (res) {
                    loading.destroy();
                    if (res.status) {
                        notyf.success(res.msg);
                        setTim