Show_content on refresh success

If an error content is displayed a successfull refresh doesn't show properly populated facet content. This patch adds show_content call to refresh success handlers which solves the problem.

https://fedorahosted.org/freeipa/ticket/2449
This commit is contained in:
Petr Vobornik
2012-03-16 14:44:11 +01:00
parent 646a4ccde3
commit 66692127c6
5 changed files with 6 additions and 0 deletions

View File

@@ -1039,6 +1039,7 @@ IPA.association_facet = function (spec) {
command.on_success = function(data, text_status, xhr) {
that.load(data);
that.show_content();
};
command.on_error = function(xhr, text_status, error_thrown) {

View File

@@ -655,6 +655,7 @@ IPA.details_facet = function(spec) {
that.refresh_on_success = function(data, text_status, xhr) {
that.load(data);
that.show_content();
};
that.refresh_on_error = function(xhr, text_status, error_thrown) {

View File

@@ -255,6 +255,7 @@ IPA.hbac.test_facet = function(spec) {
command.on_success = function(data, text_status, xhr) {
that.load(data);
that.show_content();
};
command.on_error = function(xhr, text_status, error_thrown) {

View File

@@ -222,6 +222,7 @@ IPA.search_facet = function(spec) {
command.on_success = function(data, text_status, xhr) {
that.filter.focus();
that.load(data);
that.show_content();
};
command.on_error = function(xhr, text_status, error_thrown) {

View File

@@ -272,6 +272,8 @@ IPA.user.details_facet = function(spec) {
that.refresh_on_success = function(data, text_status, xhr) {
// do not load data from batch
that.show_content();
};
that.create_refresh_command = function() {