summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-03-16 14:44:11 +0100
committerPetr Vobornik <pvoborni@redhat.com>2012-03-19 18:37:39 +0100
commit66692127c6754e9123f6bb4eaab479284112b85a (patch)
treebe982b53ad1231c4824227a31e6344e3cc611a0d /install
parent646a4ccde34a098ef693e75e45a2541618ed5434 (diff)
downloadfreeipa-66692127c6754e9123f6bb4eaab479284112b85a.tar.gz
freeipa-66692127c6754e9123f6bb4eaab479284112b85a.tar.xz
freeipa-66692127c6754e9123f6bb4eaab479284112b85a.zip
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
Diffstat (limited to 'install')
-rw-r--r--install/ui/association.js1
-rw-r--r--install/ui/details.js1
-rw-r--r--install/ui/hbactest.js1
-rw-r--r--install/ui/search.js1
-rw-r--r--install/ui/user.js2
5 files changed, 6 insertions, 0 deletions
diff --git a/install/ui/association.js b/install/ui/association.js
index 87f2fd4ab..238006f42 100644
--- a/install/ui/association.js
+++ b/install/ui/association.js
@@ -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) {
diff --git a/install/ui/details.js b/install/ui/details.js
index ee57875a0..32ace398f 100644
--- a/install/ui/details.js
+++ b/install/ui/details.js
@@ -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) {
diff --git a/install/ui/hbactest.js b/install/ui/hbactest.js
index cab579e13..373ff39b0 100644
--- a/install/ui/hbactest.js
+++ b/install/ui/hbactest.js
@@ -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) {
diff --git a/install/ui/search.js b/install/ui/search.js
index 30b4d3dd0..6bde398be 100644
--- a/install/ui/search.js
+++ b/install/ui/search.js
@@ -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) {
diff --git a/install/ui/user.js b/install/ui/user.js
index 804848947..72bdd2410 100644
--- a/install/ui/user.js
+++ b/install/ui/user.js
@@ -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() {