From 1e2c0562834d0ee3c3a7a815f5449befa4797a5a Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 14 Sep 2011 13:01:25 +0200 Subject: Fixed: Some widgets do not have space for validation error message https://fedorahosted.org/freeipa/ticket/1454 The following widgets should call create_error_link() to create a space to show validation error messages: IPA.checkbox_widget IPA.checkboxes_widget IPA.radio_widget IPA.select_widget IPA.table_widget IPA.attributes_widget IPA.rights_widget IPA.target_section (it's a widget) Solution: * added call to checkbox, checkboxes, radio, select, table, attributes widget * rights_widget inherits it from checkboxes_widget. * target_section IS NOT a widget as it doesn't inherit from widget. It's still a section, which shows different widgets based on its state. * table_widget displays error_link between pagination and summary. Additional: * added padding and unified font-weight for error message --- install/ui/aci.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'install/ui/aci.js') diff --git a/install/ui/aci.js b/install/ui/aci.js index 6fd4a525a..e5b54912d 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -276,6 +276,8 @@ IPA.attributes_widget = function(spec) { if (that.object_type) { that.populate(that.object_type); } + + that.create_error_link(container); }; that.load = function(record) { @@ -371,6 +373,10 @@ IPA.attributes_widget = function(spec) { } }; + that.show_undo = function() { + $(that.undo_span).css('display', 'inline-block'); + }; + return that; }; -- cgit