projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
231197c
)
Allow to use formfiller also for new html5 input types.
author
Daniel Carl
<danielcarl@gmx.de>
Thu, 23 Apr 2015 07:14:50 +0000
(09:14 +0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Thu, 23 Apr 2015 07:14:50 +0000
(09:14 +0200)
examples/formfiller/scripts.js
patch
|
blob
|
history
diff --git
a/examples/formfiller/scripts.js
b/examples/formfiller/scripts.js
index
f9bbd8f
..
8357409
100644
(file)
--- a/
examples/formfiller/scripts.js
+++ b/
examples/formfiller/scripts.js
@@
-30,12
+30,12
@@
var _vbform = {
if (n == "input") {
t = e.type;
- if (!t || t == "text" || t == "password") {
- e.value = v;
- } else if (t == "checkbox" || t == "radio") {
- e.checked = ("1" == v) ? true : false;
+ if (t == "checkbox" || t == "radio") {
+ e.checked = ("1" == v);
} else if (t == "submit") {
e.click();
+ } else {
+ e.value = v;
}
} else if (n == "textarea") {
e.value = v;