From 176ea00d5b5824c71a2bde63ae76cd6cb21a79d7 Mon Sep 17 00:00:00 2001 From: Babibubebon Date: Mon, 5 Sep 2022 22:22:58 +0900 Subject: [PATCH] fix autofocus for YASGUI --- layouts/shortcodes/yasgui-query.html | 2 +- layouts/shortcodes/yasgui.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/yasgui-query.html b/layouts/shortcodes/yasgui-query.html index 4d65789..5eaa37b 100644 --- a/layouts/shortcodes/yasgui-query.html +++ b/layouts/shortcodes/yasgui-query.html @@ -2,6 +2,6 @@ {{ highlight $q "sparql" }} + onclick="setYasguiQuery('{{ .Get "yasgui-id" }}', '{{ .Get "title" }}', '{{ $q }}'); location.href='#yasgui-{{ .Get "yasgui-id" }}'"> ▶ 実行する \ No newline at end of file diff --git a/layouts/shortcodes/yasgui.html b/layouts/shortcodes/yasgui.html index 668f8a8..e23e811 100644 --- a/layouts/shortcodes/yasgui.html +++ b/layouts/shortcodes/yasgui.html @@ -11,6 +11,7 @@ yasgui["{{ .Get "id" }}"] = new Yasgui(document.getElementById("yasgui-{{ .Get "id" }}"), { requestConfig: {{ dict "endpoint" (.Get "endpoint") }}, persistenceId: "{{ .Get "id" }}", + autofocus: false, copyEndpointOnNewTab: false, yasqe: { theme: "{{ .Site.Params.CodeMirrorTheme }}",