From 0399c140d95688b99dc99711f505c39b2d7983f1 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Sat, 18 Jun 2011 21:44:06 -0400 Subject: entity select undo Tests for dirty after the RPC call has completed and the select has updated Passes the original value to the RPC completion, so it isn't lost upon RPC completion https://fedorahosted.org/freeipa/ticket/1340 --- install/ui/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install') diff --git a/install/ui/widget.js b/install/ui/widget.js index b486145bd..9f013a0a7 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -1572,6 +1572,7 @@ IPA.entity_select_widget = function(spec) { option.attr('selected','selected'); } } + that.set_dirty(that.test_dirty()); } function find_error(err){ } @@ -1600,8 +1601,7 @@ IPA.entity_select_widget = function(spec) { id: 'entity_filter', style: 'display: none;', keyup: function(){ - populate_select(); - that.set_dirty(that.test_dirty()); + populate_select($('option:selected', that.entity_select).val()); } }).appendTo(container); -- cgit