]> git.scottworley.com Git - nt3d/commit - nt3d.js
Do something useful on enter in a parameter field.
authorScott Worley <ScottWorley@ScottWorley.com>
Tue, 18 Dec 2012 06:23:27 +0000 (22:23 -0800)
committerScott Worley <ScottWorley@ScottWorley.com>
Tue, 18 Dec 2012 06:23:27 +0000 (22:23 -0800)
commita26d096067f110dc88756789d771851ae58e0d1e
treec95d6e655b43191bc3789a32a8644645ed929225
parent4eea5cbf56ef47679df35e618980cf5596facba6
Do something useful on enter in a parameter field.

Enter in a parameter field now re-generates the model.  Previously, it
reloaded the page.

Note: The "go" button is still a button that calls go(), not a form
submit control.  This is for debugability.  Execution has to make it to
"return false" to prevent submission.  For form submits, if an error
happens anywhere, the form submits and uselessly reloads the page.

So the "go" button works differently (better) than enter in a parameter
field in case of errors.  This is not ideal, but is functional for now.
nt3d.js