diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-11-03 23:43:58 -0500 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2011-11-07 15:07:02 +0100 |
commit | 6802ea7d706d00ad0078d31bc650140e82b3d3a8 (patch) | |
tree | bb4f445cfeb2ef1fb79bd0bed2324cd23dbce2c9 /install/ui/entity.js | |
parent | 2eb6414372581655ba04dff7539294c75f84a281 (diff) | |
download | freeipa-6802ea7d706d00ad0078d31bc650140e82b3d3a8.tar.gz freeipa-6802ea7d706d00ad0078d31bc650140e82b3d3a8.tar.xz freeipa-6802ea7d706d00ad0078d31bc650140e82b3d3a8.zip |
Fixed problem changing page in association facet.
The association facet has been modified to detect page change to
determine whether the facet needs to be updated.
Ticket #1459
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r-- | install/ui/entity.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js index 75f781e62..f7bf992aa 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -156,8 +156,10 @@ IPA.entity = function(spec) { var facet_name = IPA.nav.get_state(that.name+'-facet'); that.facet = that.get_facet(facet_name); + var needs_update = that.facet.needs_update(); + // same entity, same facet, and doesn't need updating => return - if (that == prev_entity && that.facet == prev_facet && !that.facet.needs_update()) { + if (that == prev_entity && that.facet == prev_facet && !needs_update) { return; } @@ -175,7 +177,7 @@ IPA.entity = function(spec) { that.facet.create(facet_container); } - if (that.facet.needs_update()) { + if (needs_update) { that.facet.clear(); that.facet.show(); that.facet.header.select_tab(); |