mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user