From 5a3497677937e7a632021b75d2ebef8eed3ec252 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 17 Nov 2010 21:12:55 -0500 Subject: [PATCH] add button the spec had three add buttons: this one is the basic, 'add and then close' https://fedorahosted.org/freeipa/ticket/471 --- install/static/add.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 @@ -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,