webui: fix field's default value

Fields with default value, such as DNS Zone's idnsforwardpolicy, were
marked as dirty when no value was loaded and when default value of
input control was other than empty.

Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik 2014-06-18 12:43:54 +02:00
parent 15374cf58f
commit bfdf9039ce

View File

@ -252,7 +252,7 @@ field.field = IPA.field = function(spec) {
* Default value
* @property {Mixed}
*/
that.default_value = null;
that.default_value = spec.default_value || null;
/**
* Field is dirty (value is modified)