forked from GitHub/gf-core
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) {
|
||||
var w=div_class("word",text(s));
|
||||
w.setAttribute("onclick",'add_word("'+s+'")');
|
||||
return w;
|
||||
//var w=div_class("word",text(s));
|
||||
//w.setAttribute("onclick",'add_word("'+s+'")');
|
||||
//return w;
|
||||
return button(s,'add_word("'+s+'")');
|
||||
}
|
||||
|
||||
function add_word1(menu,s) {
|
||||
|
||||
Reference in New Issue
Block a user