From 740bacdfb9b7258a21669873efbd7639aebbdd71 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 21 Jul 2011 18:50:32 -0500 Subject: 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 --- install/ui/entity.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'install/ui/entity.js') 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); }; -- cgit