summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/add.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-01-31 17:25:14 +0100
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:17 +0200
commit31d7486b88bc0e30c8a84ab4d2f73c35a700dad8 (patch)
treef28ee432487ef269e285064c5588e4b4168c5205 /install/ui/src/freeipa/add.js
parent7edf044a440d9a7f60c691811acedfc6a20ecbfe (diff)
downloadfreeipa-31d7486b88bc0e30c8a84ab4d2f73c35a700dad8.tar.gz
freeipa-31d7486b88bc0e30c8a84ab4d2f73c35a700dad8.tar.xz
freeipa-31d7486b88bc0e30c8a84ab4d2f73c35a700dad8.zip
Remove IPA.nav usage, obsolete entity.get_primary_key
https://fedorahosted.org/freeipa/ticket/3236
Diffstat (limited to 'install/ui/src/freeipa/add.js')
-rw-r--r--install/ui/src/freeipa/add.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/add.js b/install/ui/src/freeipa/add.js
index 1b4a1ae59..388b4e497 100644
--- a/install/ui/src/freeipa/add.js
+++ b/install/ui/src/freeipa/add.js
@@ -19,7 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-define(['./ipa', './jquery', './field', './widget', './dialog'], function(IPA, $) {
+define(['./ipa', './jquery', './navigation', './field', './widget', './dialog'],
+ function(IPA, $, navigation) {
IPA.entity_adder_dialog = function(spec) {
@@ -127,7 +128,10 @@ IPA.entity_adder_dialog = function(spec) {
if (pkey instanceof Array) {
pkey = pkey[0];
}
- IPA.nav.show_entity_page(that.entity, 'default', pkey);
+
+ var pkeys = that.facet.get_pkeys();
+ pkeys.push(pkey);
+ navigation.show_entity(that.entity.name, 'default', [pkeys]);
}
that.create_add_command = function(record) {