Read-only text widget's save() should return null.

This commit is contained in:
Endi S. Dewata
2011-02-07 15:31:42 -05:00
parent 9b73da1d54
commit 7be127512b
+2 -1
View File
@@ -352,7 +352,8 @@ IPA.text_widget = function(spec) {
that.save = function() {
if (that.read_only || !that.writable) {
return that.values;
return null;
} else {
var input = $('input[name="'+that.name+'"]', that.container);
var value = $.trim(input.val());