From e9089e17b0d8b34dc01812c3486dfd0c2c043968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 29 Jan 2024 20:33:22 +0100 Subject: [PATCH] Toggle a single instance of help dialog when pressing F1 Closes #12970 --- sao/index.html | 1 + sao/src/sao.js | 104 +++++++++++++++++++++++++++---------------------- 2 files changed, 58 insertions(+), 47 deletions(-) diff --git a/sao/index.html b/sao/index.html index 302f961cf4..21067ea1f5 100644 --- a/sao/index.html +++ b/sao/index.html @@ -20,6 +20,7 @@ this repository contains the full copyright notices and license terms. --> + diff --git a/sao/src/sao.js b/sao/src/sao.js index 1268434a4c..f5a2ae13d9 100644 --- a/sao/src/sao.js +++ b/sao/src/sao.js @@ -1215,58 +1215,68 @@ var Sao = { } } + var _help_dialog = null; + function help_dialog() { - var dialog = new Sao.Dialog( - Sao.i18n.gettext("Help"), 'help-dialog', 'md', true, - Sao.__version__); - jQuery('