Fix issue which broke setup of Web UI unit tests

Web UI itself wasn't negatively affected.

Issue introduced in be144da672e0634f7aaeff69d662cbc4d11aff0f (#2897).

https://fedorahosted.org/freeipa/ticket/2897
--
Petr Vobornik

From c2ee98f3923a1f916d078e466658cf13922514c6 Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Thu, 23 Aug 2012 16:59:00 +0200
Subject: [PATCH] Fix issue which broke setup of Web UI unit tests

Web UI itself wasn't negatively affected.

https://fedorahosted.org/freeipa/ticket/2897
---
 install/ui/ipa.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/install/ui/ipa.js b/install/ui/ipa.js
index 4fb0559b94ad8eb20387d7ebc7d4da8b79bff11a..0c25863d74663c3acda4cc37000a70b822e143c5 100644
--- a/install/ui/ipa.js
+++ b/install/ui/ipa.js
@@ -194,7 +194,9 @@ var IPA = function() {
             ],
             on_success: function(data, text_status, xhr) {
                 IPA.ui.initialized = true;
-                params.on_success.call(this, data, text_status, xhr);
+                if (params.on_success) {
+                    params.on_success.call(this, data, text_status, xhr);
+                }
             },
             on_error: params.on_error
         });
-- 
1.7.10.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to