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.
This commit is contained in:
Thomas Hallgren
2018-03-29 16:17:25 +02:00
parent a9135c9b7e
commit 78cf184957

View File

@@ -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) {