Merge pull request #439 from zquestz/patch-1
Swapped order of element.innerHTML and element.value
This commit is contained in:
commit
0ef945d735
1 changed files with 1 additions and 1 deletions
|
|
@ -187,8 +187,8 @@ function setupContainer(element, getValue) {
|
||||||
var oldSumit = parentNode.onsubmit;
|
var oldSumit = parentNode.onsubmit;
|
||||||
// Override the onsubmit function of the form.
|
// Override the onsubmit function of the form.
|
||||||
parentNode.onsubmit = function(evt) {
|
parentNode.onsubmit = function(evt) {
|
||||||
element.value = getValue();
|
|
||||||
element.innerHTML = getValue();
|
element.innerHTML = getValue();
|
||||||
|
element.value = getValue();
|
||||||
// If there is a onsubmit function already, then call
|
// If there is a onsubmit function already, then call
|
||||||
// it with the current context and pass the event.
|
// it with the current context and pass the event.
|
||||||
if (oldSumit) {
|
if (oldSumit) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue