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:54:07 +0100
commit224e8c3830d6ce40327497e91326a0c5b8a02f62 (patch)
treea114c2a1de493aad562f9b078ca3a529ab94fbed /install
parent801dddf6b488c68315a88305188e062fc02ff4b4 (diff)
downloadfreeipa.git-224e8c3830d6ce40327497e91326a0c5b8a02f62.tar.gz
freeipa.git-224e8c3830d6ce40327497e91326a0c5b8a02f62.tar.xz
freeipa.git-224e8c3830d6ce40327497e91326a0c5b8a02f62.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 87f2fd4a..238006f4 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 ee57875a..32ace398 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 cab579e1..373ff39b 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 30b4d3dd..6bde398b 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 80484894..72bdd241 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() {