diff options
Diffstat (limited to 'install/ui/host.js')
-rw-r--r-- | install/ui/host.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/install/ui/host.js b/install/ui/host.js index 743196b08..3ffcba34b 100644 --- a/install/ui/host.js +++ b/install/ui/host.js @@ -138,6 +138,7 @@ IPA.host_adder_dialog = function(spec) that.on_error = function(xhr, text_status, error_thrown) { + var ajax = this; var command = that.command; var data = error_thrown.data; var dialog = null; @@ -152,7 +153,7 @@ IPA.host_adder_dialog = function(spec) fqdn: that.get_field('fqdn').save() } }; - command.on_success(data, text_status, xhr); + command.on_success.call(ajax, data, text_status, xhr); } }); } else { |