summaryrefslogtreecommitdiffstats
path: root/install/ui/details.js
diff options
context:
space:
mode:
authorPetr Voborník <pvoborni@redhat.com>2012-01-16 14:17:46 +0100
committerEndi S. Dewata <edewata@redhat.com>2012-01-30 17:46:57 -0600
commit71f934348095df57c3fc8f02c5e8eacc929c7354 (patch)
treed7755943b1bc3e8168475f1eb58d8e5aec7f748e /install/ui/details.js
parent7a1399bee1547b85186e010720a90ed6ab2f5e22 (diff)
downloadfreeipa-71f934348095df57c3fc8f02c5e8eacc929c7354.tar.gz
freeipa-71f934348095df57c3fc8f02c5e8eacc929c7354.tar.xz
freeipa-71f934348095df57c3fc8f02c5e8eacc929c7354.zip
Added refresh button for UI
Web UI is caching records. Currently only possible ways how to display updated record which was changed elsewhere - ie. in CLI are: * refresh page in browser (takes really long on slow vpns) * search facet: change filter, find, change filter back, find * entity details: go to search, select other entry, go back to search, select original entry * association facet: same as entity details These are unconvenient methods. This patch adds Refresh button to search, details and association facet. This button executes facets refresh method. https://fedorahosted.org/freeipa/ticket/2051
Diffstat (limited to 'install/ui/details.js')
-rw-r--r--install/ui/details.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/install/ui/details.js b/install/ui/details.js
index 4adc2770b..acd498aa0 100644
--- a/install/ui/details.js
+++ b/install/ui/details.js
@@ -299,6 +299,17 @@ IPA.details_facet = function(spec) {
that.create_controls = function() {
+ that.refresh_button = IPA.action_button({
+ name: 'refresh',
+ href: 'refresh',
+ label: IPA.messages.buttons.refresh,
+ icon: 'reset-icon',
+ click: function() {
+ that.refresh();
+ return false;
+ }
+ }).appendTo(that.controls);
+
that.reset_button = IPA.action_button({
name: 'reset',
label: IPA.messages.buttons.reset,
@@ -346,7 +357,7 @@ IPA.details_facet = function(spec) {
style: 'display: none;',
click: function() {
that.expand_button.css('display', 'none');
- that.collapse_button.css('display', 'inline');
+ that.collapse_button.css('display', 'inline-block');
var widgets = that.widgets.get_widgets();
for (var i=0; i<widgets.length; i++) {
@@ -365,7 +376,7 @@ IPA.details_facet = function(spec) {
label: IPA.messages.details.collapse_all,
'class': 'right-aligned-facet-controls',
click: function() {
- that.expand_button.css('display', 'inline');
+ that.expand_button.css('display', 'inline-block');
that.collapse_button.css('display', 'none');
var widgets = that.widgets.get_widgets();