forked from GitHub/gf-core
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:
@@ -832,7 +832,7 @@ function draw_abstract(g) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function draw_comment(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) {
|
function module_name(g,ix) {
|
||||||
|
|||||||
Reference in New Issue
Block a user