From 390d017e321fd5ed56af094cf1f1c74f64e95735 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Sat, 10 Sep 2011 11:54:02 -0500 Subject: Modified dialog to use sections. The IPA.dialog has been modified to store sections instead of fields. If there is no sections specified, it will create a default section. The adder dialog for automount map has been modified such that the fields related to indirect map are stored in a section which will only be visible when the map type is set to indirect. The adder dialog for host has been modified such that it uses a custom section for hostname and DNS zone and standard section for the other fields. Ticket #1394 --- install/ui/add.js | 69 +++++++++++++++++++------------------------------------ 1 file changed, 24 insertions(+), 45 deletions(-) (limited to 'install/ui/add.js') diff --git a/install/ui/add.js b/install/ui/add.js index b4f1228f..21707df1 100644 --- a/install/ui/add.js +++ b/install/ui/add.js @@ -46,9 +46,8 @@ IPA.add_dialog = function (spec) { that.show_edit_page = spec.show_edit_page || show_edit_page; - that.add = function(record, on_success, on_error) { + that.add = function(on_success, on_error) { - var field, value, pkey_prefix; var pkey_name = that.entity.metadata.primary_key; var command = IPA.command({ @@ -60,46 +59,36 @@ IPA.add_dialog = function (spec) { }); that.command = command; - pkey_prefix = that.entity.get_primary_key_prefix(); + command.add_args(that.entity.get_primary_key_prefix()); - for (var h=0; h