Read-only text widget's save() should return null.
This commit is contained in:
1 parent
9b73da1d54
commit
7be127512b
1 file changed
+2
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user