diff options
| author | hallgren <hallgren@chalmers.se> | 2010-05-26 11:47:15 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2010-05-26 11:47:15 +0000 |
| commit | 0f82695c310d571b5cce8e806581acd604508551 (patch) | |
| tree | 70ffd88191a8e36f37839cafcde2cd64473b71f0 /src/runtime/javascript | |
| parent | 0d77f24f02b9435918d0e8d799e8a9226b882af5 (diff) | |
Use <input type=button ...> instead of <div ...> tags for the word magnets. This should make them clickable in more browsers and could improve layout.
Diffstat (limited to 'src/runtime/javascript')
| -rw-r--r-- | src/runtime/javascript/minibar/minibar.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/runtime/javascript/minibar/minibar.js b/src/runtime/javascript/minibar/minibar.js index 0af966fe1..133f1aafa 100644 --- a/src/runtime/javascript/minibar/minibar.js +++ b/src/runtime/javascript/minibar/minibar.js @@ -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) { |
