projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b74ae2d
)
Add off-value for checkboxes
author
Joey Schulze
<joey@infodrom.org>
Wed, 20 Jul 2011 10:43:06 +0000
(12:43 +0200)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 20 Jul 2011 10:43:06 +0000
(12:43 +0200)
lib/functions.js
patch
|
blob
|
history
diff --git
a/lib/functions.js
b/lib/functions.js
index
3d819b2
..
9bda144
100644
(file)
--- a/
lib/functions.js
+++ b/
lib/functions.js
@@
-68,6
+68,7
@@
function ajax_form_submit(func,form,oncomplete)
var value = '';
if (element.type.toLowerCase() == 'checkbox') {
if (element.checked) value = 'on';
+ else value = 'off';
} else {
value = element.value;
}