diff options
author | Adam Young <ayoung@redhat.com> | 2010-11-17 21:12:55 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2010-11-19 02:26:01 -0500 |
commit | 5a3497677937e7a632021b75d2ebef8eed3ec252 (patch) | |
tree | 403659af32baae4f9b9be09528476499eaf346b9 /install/static | |
parent | 9fa855edfebbe028f769a3eef1a9688d19da75a8 (diff) | |
download | freeipa-5a3497677937e7a632021b75d2ebef8eed3ec252.tar.gz freeipa-5a3497677937e7a632021b75d2ebef8eed3ec252.tar.xz freeipa-5a3497677937e7a632021b75d2ebef8eed3ec252.zip |
add button the spec had three add buttons: this one is the basic, 'add and then close' https://fedorahosted.org/freeipa/ticket/471
Diffstat (limited to 'install/static')
-rw-r--r-- | install/static/add.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/install/static/add.js b/install/static/add.js index 1ebd28886..4325857fb 100644 --- a/install/static/add.js +++ b/install/static/add.js @@ -42,6 +42,21 @@ function ipa_add_dialog(spec) { 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, + function() { + var entity = IPA.get_entity(that.entity_name); + var facet = entity.get_facet('search'); + var table = facet.table; + table.refresh(that.container); that.clear(that.container); } ); |