From 37cdbae23424b0dd8c6296d0303efdfa3bfffcfd Mon Sep 17 00:00:00 2001 From: Petr Voborník Date: Wed, 22 Feb 2012 12:53:00 +0100 Subject: Added attrs to permission when target is group or filter Option to set attributes in permission was missing for target 'group' and 'filter'. Attribute_table_widget with type=group is shown for target=group. For target=filter a multivalued textbox is shown. This is because UI can't predict what type will the result of the filter be. In future it can be extended by interactive attribute selector to help user find what he wants to enter. Mutlivalued widget was modified to show undo button for new entries even if show_undo is false. It is useful in adder dialog to indicate that user added something and to enable it reversal. https://fedorahosted.org/freeipa/ticket/2372 --- install/ui/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/ui/widget.js') diff --git a/install/ui/widget.js b/install/ui/widget.js index a54c9b82..642d3250 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -436,7 +436,7 @@ IPA.multivalued_widget = function(spec) { row.widget = that.widget_factory({ name: that.name+'-'+row_index, - undo: that.undo, + undo: that.undo || row.is_new, read_only: that.read_only, writable: that.writable }); -- cgit