summaryrefslogtreecommitdiffstats
path: root/install/ui/entity.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-07-21 18:50:32 -0500
committerAdam Young <ayoung@redhat.com>2011-07-22 12:29:55 -0400
commit740bacdfb9b7258a21669873efbd7639aebbdd71 (patch)
tree32767b60aec65847faa8c48dec75ea26f602bcf2 /install/ui/entity.js
parent38ed284054a0d2e436f8a2717faceabec7e996ab (diff)
downloadfreeipa-740bacdfb9b7258a21669873efbd7639aebbdd71.tar.gz
freeipa-740bacdfb9b7258a21669873efbd7639aebbdd71.tar.xz
freeipa-740bacdfb9b7258a21669873efbd7639aebbdd71.zip
Fixed navigation problems.
The navigation code has been modified store the facet's state separately in the facet object itself. The path state is stored in the navigation object. When the path is changed to view a new facet, only the path and the state of the new facet will be shown in the URL, thus keeping the URL short. This fixes pagination, bookmark and search filter problems as well. Ticket #1507, 1516, 1517
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r--install/ui/entity.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js
index 83687fe7e..a2386b816 100644
--- a/install/ui/entity.js
+++ b/install/ui/entity.js
@@ -48,6 +48,8 @@ IPA.facet = function (spec) {
// facet group name
that.facet_group = spec.facet_group;
+ that.state = {};
+
that.__defineGetter__('entity_name', function() {
return that._entity_name;
});
@@ -467,6 +469,7 @@ IPA.entity = function (spec) {
that.redirect_facet = spec.redirect_facet;
that.containing_entity = null;
+
that.get_dialog = function(name) {
return that.dialogs.get(name);
};