From 689fd30b522c1bb77bb6e087bdfca940553fe495 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 7 Apr 2011 16:14:58 -0500 Subject: Refactored builder interface. The IPA.entity_builder has been modified to take a 'factory' parameter in custom facet's and custom dialog's spec. The IPA.dialog has been modified to take an array of fields in the spec. The IPA.search_facet has been modified to take an array of columns in the spec. --- install/ui/dialog.js | 19 +++++++++++ install/ui/dns.js | 5 +-- install/ui/entity.js | 87 ++++++++++++++++++++++++++------------------------- install/ui/group.js | 6 ++-- install/ui/hbac.js | 5 +-- install/ui/host.js | 5 +-- install/ui/search.js | 10 ++++++ install/ui/service.js | 29 ++++++++--------- install/ui/sudo.js | 5 +-- 9 files changed, 103 insertions(+), 68 deletions(-) (limited to 'install') diff --git a/install/ui/dialog.js b/install/ui/dialog.js index 17e78af6..964d5f5f 100644 --- a/install/ui/dialog.js +++ b/install/ui/dialog.js @@ -265,6 +265,25 @@ IPA.dialog = function(spec) { that.dialog_setup = that.setup; that.dialog_open = that.open; + var fields = spec.fields || []; + for (var i=0; i