summaryrefslogtreecommitdiffstats
path: root/install/ui/add.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/add.js')
-rw-r--r--install/ui/add.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/install/ui/add.js b/install/ui/add.js
index 89527ba23..33712b45e 100644
--- a/install/ui/add.js
+++ b/install/ui/add.js
@@ -36,7 +36,8 @@ IPA.add_dialog = function (spec) {
that.init = function() {
that.add_button('Add', function() {
- var record = that.get_record();
+ var record = {};
+ that.save(record);
that.add(
record,
function() {
@@ -51,7 +52,8 @@ IPA.add_dialog = function (spec) {
that.add_button('Add and Add Another', function() {
- var record = that.get_record();
+ var record = {};
+ that.save(record);
that.add(
record,
function() {
@@ -65,7 +67,8 @@ IPA.add_dialog = function (spec) {
});
that.add_button('Add and Edit', function() {
- var record = that.get_record();
+ var record = {};
+ that.save(record);
that.add(
record,
function() {
@@ -113,6 +116,8 @@ IPA.add_dialog = function (spec) {
}
}
+ //alert(JSON.stringify(command.to_json()));
+
command.execute();
};