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
This commit is contained in:
Adam Young 2011-06-18 21:44:06 -04:00 committed by Endi S. Dewata
parent eacd33e88e
commit 0399c140d9

View File

@ -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);