From 34201ea0ab859be6f7103a3b12e0110dec390dcb Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 28 Mar 2013 15:59:38 +0100 Subject: Rename path array from hash to path in hash generation https://fedorahosted.org/freeipa/ticket/3236 --- install/ui/src/freeipa/navigation/Router.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'install/ui/src') diff --git a/install/ui/src/freeipa/navigation/Router.js b/install/ui/src/freeipa/navigation/Router.js index 286ac463..ca141764 100644 --- a/install/ui/src/freeipa/navigation/Router.js +++ b/install/ui/src/freeipa/navigation/Router.js @@ -251,11 +251,11 @@ define(['dojo/_base/declare', delete state.pkeys; var args = ioquery.objectToQuery(state || {}); - var hash = [this.route_prefix, 'e', entity_name, facet.name]; - if (!IPA.is_empty(args)) hash.push(pkeys, args); - else if (!IPA.is_empty(pkeys)) hash.push(pkeys); + var path = [this.route_prefix, 'e', entity_name, facet.name]; + if (!IPA.is_empty(args)) path.push(pkeys, args); + else if (!IPA.is_empty(pkeys)) path.push(pkeys); - hash = hash.join('/'); + var hash = path.join('/'); return hash; }, @@ -264,10 +264,10 @@ define(['dojo/_base/declare', */ _create_facet_hash: function(facet, state) { var args = ioquery.objectToQuery(state.args || {}); - var hash = [this.route_prefix, 'p', facet.name]; + var path = [this.route_prefix, 'p', facet.name]; - if (!IPA.is_empty(args)) hash.push(args); - hash = hash.join('/'); + if (!IPA.is_empty(args)) path.push(args); + var hash = path.join('/'); return hash; }, -- cgit