summaryrefslogtreecommitdiffstats
path: root/install/static/ipa.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/static/ipa.js')
-rw-r--r--install/static/ipa.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/install/static/ipa.js b/install/static/ipa.js
index 4a01d9fb8..6ba8b67ec 100644
--- a/install/static/ipa.js
+++ b/install/static/ipa.js
@@ -101,6 +101,7 @@ var IPA = ( function () {
that.entities_by_name[entity.name] = entity;
};
+
that.show_page = function (entity_name, facet_name, other_entity) {
var state = {};
@@ -109,6 +110,19 @@ var IPA = ( function () {
$.bbq.pushState(state);
};
+ that.switch_and_show_page = function (
+ this_entity, facet_name, pkey, other_entity) {
+ if (!pkey){
+ that.show_page(this_entity, facet_name, other_entity);
+ return;
+ }
+ var state = {};
+ state[this_entity+'-pkey'] = pkey;
+ state[this_entity + '-facet'] = facet_name;
+ state[this_entity + '-enroll'] = other_entity ? other_entity : '';
+ $.bbq.pushState(state);
+ };
+
return that;
}());