mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
Use <input type=button ...> instead of <div ...> tags for the word magnets. This should make them clickable in more browsers and could improve layout.
This commit is contained in:
@@ -241,9 +241,10 @@ function get_completions(menu) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function word(s) {
|
function word(s) {
|
||||||
var w=div_class("word",text(s));
|
//var w=div_class("word",text(s));
|
||||||
w.setAttribute("onclick",'add_word("'+s+'")');
|
//w.setAttribute("onclick",'add_word("'+s+'")');
|
||||||
return w;
|
//return w;
|
||||||
|
return button(s,'add_word("'+s+'")');
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_word1(menu,s) {
|
function add_word1(menu,s) {
|
||||||
|
|||||||
Reference in New Issue
Block a user