summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-06-18 21:44:06 -0400
committerEndi S. Dewata <edewata@redhat.com>2011-06-20 17:24:21 +0000
commit0399c140d95688b99dc99711f505c39b2d7983f1 (patch)
tree5b98a907b9f516492cafbaf0b7a2a710a3471651
parenteacd33e88ef887a192d8e091631a42ee97c0a8a9 (diff)
downloadfreeipa-0399c140d95688b99dc99711f505c39b2d7983f1.tar.gz
freeipa-0399c140d95688b99dc99711f505c39b2d7983f1.tar.xz
freeipa-0399c140d95688b99dc99711f505c39b2d7983f1.zip
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
-rw-r--r--install/ui/widget.js4
1 files changed, 2 insertions, 2 deletions
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);