Commit 6c1289a
committed
Switch ww_applet_support.js from using a submit handler to click handlers on the submit buttons.
This makes applet problems work in the PG problem editor of webwork2.
The PG problem editor uses click handlers on the submit buttons as well,
but calls `preventDefault` on the event, and prevents the form
submission from occuring. That prevents the current submit handler set
in the ww_applet_support.js code from happening. Thus the answers for
applets do not get submitted. By using the click handlers this gets in
at the same point that the PG problem editor handlers are, and they
still occur. All click handlers are executed even if one of them
prevents default behavior.1 parent 72c4239 commit 6c1289a
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
283 | 285 | | |
284 | 286 | | |
285 | 287 | | |
| |||
0 commit comments