From 78cf1849574b8ba2709d1712202ebe34327c63f9 Mon Sep 17 00:00:00 2001 From: Thomas Hallgren Date: Thu, 29 Mar 2018 16:17:25 +0200 Subject: gfse: fix for some browser: hovering over an empty grammar comment to edit it This was a problem in Safari (an other similar browsers I presume), but not in Firefox: hovering over the grammar comment (shown below the grammar name when you edit a grammar) didn't reveal the button to edit it, thus preventing you from adding a comment. It was till possible by selecting the "Enable editing on touch devices." at the bottom of the screen, but most people probably didn't notice that it is possible to add a comment. --- src/www/gfse/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/www/gfse/editor.js b/src/www/gfse/editor.js index 4e3630af0..42638090c 100644 --- a/src/www/gfse/editor.js +++ b/src/www/gfse/editor.js @@ -832,7 +832,7 @@ function draw_abstract(g) { } function draw_comment(g) { - return div_class("comment",editable("span",text(g.comment || ""),g,edit_comment,"Edit grammar description")); + return div_class("comment",editable("span",text(g.comment || "…"),g,edit_comment,"Edit grammar description")); } function module_name(g,ix) { -- cgit v1.2.3