Merge pull request #439 from zquestz/patch-1

Swapped order of element.innerHTML and element.value
This commit is contained in:
Fabian Jakobs 2011-10-04 05:00:27 -07:00
commit 0ef945d735

View file

@ -187,8 +187,8 @@ function setupContainer(element, getValue) {
var oldSumit = parentNode.onsubmit;
// Override the onsubmit function of the form.
parentNode.onsubmit = function(evt) {
element.value = getValue();
element.innerHTML = getValue();
element.value = getValue();
// If there is a onsubmit function already, then call
// it with the current context and pass the event.
if (oldSumit) {