diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-03-14 14:26:14 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:19 +0200 |
commit | 3e392bbfc66e10349b3205d25039a6619a64a29d (patch) | |
tree | 0553314dd841e4a1b96d2c1fee2d67ce6b5a53df /install/ui/src/freeipa/details.js | |
parent | 166102a910bad2002819205b009694372f1f0e22 (diff) | |
download | freeipa-3e392bbfc66e10349b3205d25039a6619a64a29d.tar.gz freeipa-3e392bbfc66e10349b3205d25039a6619a64a29d.tar.xz freeipa-3e392bbfc66e10349b3205d25039a6619a64a29d.zip |
get_primary_key function usages removed
https://fedorahosted.org/freeipa/ticket/3236
Diffstat (limited to 'install/ui/src/freeipa/details.js')
-rw-r--r-- | install/ui/src/freeipa/details.js | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/install/ui/src/freeipa/details.js b/install/ui/src/freeipa/details.js index aa36b5fbc..bf8ec9d97 100644 --- a/install/ui/src/freeipa/details.js +++ b/install/ui/src/freeipa/details.js @@ -291,16 +291,6 @@ IPA.details_facet = function(spec, no_init) { that.dirty = false; that.dirty_changed = IPA.observer(); - /* the primary key used for show and update is built as an array. - for most entities, this will be a single element long, but for some - it requires the containing entities primary keys as well.*/ - //FIXME: obsolete this stuff - that.get_primary_key = function(from_url) { - - var pkeys = that.get_pkeys(); - return pkeys; - }; - that.create = function(container) { if (that.entity.facets.length == 1) { if (that.disable_breadcrumb === undefined) { @@ -481,8 +471,7 @@ IPA.details_facet = function(spec, no_init) { that.nofify_update_success = function() { var msg = IPA.messages.details.updated; - var key = that.get_primary_key(); - key = key[key.length -1] || ''; + var key = that.get_pkey(); msg = msg.replace('${entity}', that.entity.metadata.label_singular); msg = msg.replace('${primary_key}', key); IPA.notify_success(msg); @@ -513,7 +502,7 @@ IPA.details_facet = function(spec, no_init) { that.create_fields_update_command = function(update_info) { - var args = that.get_primary_key(); + var args = that.get_pkeys(); var options = { all: true }; if (that.check_rights) options.rights = true; @@ -619,7 +608,7 @@ IPA.details_facet = function(spec, no_init) { }); if (that.get_pkey()) { - command.args = that.get_primary_key(true); + command.args = that.get_pkeys(); } return command; |