1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Index: /Users/jan/webdev/moodev/mootools/trunk/Element/Element.Form.js
===================================================================
@@ -26,10 +26,10 @@
if (option.selected) values.push($pick(option.value, option.text));
});
return (this.multiple) ? values : values[0];
- case 'input': if (!(this.checked && ['checkbox', 'radio'].contains(this.type)) && !['hidden', 'text', 'password'].contains(this.type)) break;
+ case 'input': if (['checkbox', 'radio'].contains(this.type) && !this.checked) return false;
case 'textarea': return this.value;
}
- return false;
+ return null;
},
getFormElements: function(){
|