diff options
author | Adam Young <ayoung@redhat.com> | 2011-06-22 13:21:40 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-06-23 20:24:14 -0400 |
commit | cbffe1d65df222acf6eb26cdaa121932a01f9ba7 (patch) | |
tree | e73a874433ce34fbef98f5ddf7a8109ad223188c /install/ui/details.js | |
parent | 8810758c11df8afb5fb7ddf97a71c55a431edfd2 (diff) | |
download | freeipa-cbffe1d65df222acf6eb26cdaa121932a01f9ba7.tar.gz freeipa-cbffe1d65df222acf6eb26cdaa121932a01f9ba7.tar.xz freeipa-cbffe1d65df222acf6eb26cdaa121932a01f9ba7.zip |
automountkey details
Adds hooks for navigation to the show page due to the unusual way that keys are accessed.
https://fedorahosted.org/freeipa/ticket/1257
Diffstat (limited to 'install/ui/details.js')
-rw-r--r-- | install/ui/details.js | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/install/ui/details.js b/install/ui/details.js index 477857b20..2db80fbaa 100644 --- a/install/ui/details.js +++ b/install/ui/details.js @@ -266,6 +266,8 @@ IPA.details_facet = function(spec) { var that = IPA.facet(spec); + that.pre_execute_hook = spec.pre_execute_hook; + that.label = spec.label || IPA.messages && IPA.messages.facets && IPA.messages.facets.details; that.facet_group = spec.facet_group || 'settings'; @@ -336,8 +338,12 @@ IPA.details_facet = function(spec) { that.create = function(container) { if (that.entity.facets.length == 1) { - that.disable_breadcrumb = true; - that.disable_facet_tabs = true; + if (that.disable_breadcrumb === undefined) { + that.disable_breadcrumb = true; + } + if (that.disable_facet_tabs === undefined) { + that.disable_facet_tabs = true; + } } that.facet_create(container); @@ -617,6 +623,10 @@ IPA.details_facet = function(spec) { //alert(JSON.stringify(command.to_json())); + if (that.pre_execute_hook){ + that.pre_execute_hook(command); + } + command.execute(); }; @@ -653,6 +663,10 @@ IPA.details_facet = function(spec) { command.on_error = that.on_error; + if (that.pre_execute_hook){ + that.pre_execute_hook(command); + } + command.execute(); }; |