summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install/ui/field.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/install/ui/field.js b/install/ui/field.js
index 38d71b476..c79c59bb4 100644
--- a/install/ui/field.js
+++ b/install/ui/field.js
@@ -636,8 +636,12 @@ IPA.link_field = function(spec) {
args: that.other_pkeys(),
options: {},
retry: false,
- on_success: function (result) {
- that.widget.is_link = result.result !== undefined;
+ on_success: function(data) {
+ that.widget.is_link = data.result && data.result.result;
+ that.widget.update(that.values);
+ },
+ on_error: function() {
+ that.widget.is_link = false;
that.widget.update(that.values);
}
}).execute();