mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
add button the spec had three add buttons: this one is the basic, 'add and then close' https://fedorahosted.org/freeipa/ticket/471
This commit is contained in:
parent
9fa855edfe
commit
5a34976779
@ -34,6 +34,21 @@ function ipa_add_dialog(spec) {
|
||||
that.init = function() {
|
||||
|
||||
that.add_button('Add', function() {
|
||||
var record = that.get_record();
|
||||
that.add(
|
||||
record,
|
||||
function() {
|
||||
var entity = IPA.get_entity(that.entity_name);
|
||||
var facet = entity.get_facet('search');
|
||||
var table = facet.table;
|
||||
table.refresh(that.container);
|
||||
that.close();
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
that.add_button('Add and Add Another', function() {
|
||||
var record = that.get_record();
|
||||
that.add(
|
||||
record,
|
||||
|
Loading…
Reference in New Issue
Block a user