summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/navigation
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-03-28 15:59:38 +0100
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:18 +0200
commit34201ea0ab859be6f7103a3b12e0110dec390dcb (patch)
tree662c3a85193541f10a424e216342760a54160ace /install/ui/src/freeipa/navigation
parent9657c757f6622bcbbf8e811b1c1d6b6acf6805dc (diff)
downloadfreeipa-34201ea0ab859be6f7103a3b12e0110dec390dcb.tar.gz
freeipa-34201ea0ab859be6f7103a3b12e0110dec390dcb.tar.xz
freeipa-34201ea0ab859be6f7103a3b12e0110dec390dcb.zip
Rename path array from hash to path in hash generation
https://fedorahosted.org/freeipa/ticket/3236
Diffstat (limited to 'install/ui/src/freeipa/navigation')
-rw-r--r--install/ui/src/freeipa/navigation/Router.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/install/ui/src/freeipa/navigation/Router.js b/install/ui/src/freeipa/navigation/Router.js
index 286ac4634..ca1417649 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;
},