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

This commit is contained in:
Endi S. Dewata 2011-02-07 13:12:30 -06:00
parent 9b73da1d54
commit 7be127512b

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());