Fix issue which broke setup of Web UI unit tests

Web UI itself wasn't negatively affected.

https://fedorahosted.org/freeipa/ticket/2897
This commit is contained in:
Petr Vobornik 2012-08-23 16:59:00 +02:00
parent 36c345dd1d
commit 7d3aa96103

View File

@ -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
});