diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-04-19 11:53:00 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@people01.fedoraproject.org> | 2011-04-21 19:44:06 +0000 |
commit | d2be41dd1b69020b11cdd6ba66436424f3a0033a (patch) | |
tree | d88c09f5a0ef620df4319f2e564689f585299eb6 /install/ui/details.js | |
parent | 3528b4eca3cf2519a6af5a43f6b321cbd8eea138 (diff) | |
download | freeipa-d2be41dd1b69020b11cdd6ba66436424f3a0033a.tar.gz freeipa-d2be41dd1b69020b11cdd6ba66436424f3a0033a.tar.xz freeipa-d2be41dd1b69020b11cdd6ba66436424f3a0033a.zip |
Standardized action panel buttons creation.
Action panel buttons are now created in facet's create_action_panel().
This is to allow a subclass to override and customize the buttons.
Diffstat (limited to 'install/ui/details.js')
-rw-r--r-- | install/ui/details.js | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/install/ui/details.js b/install/ui/details.js index 0a22c177..590d775a 100644 --- a/install/ui/details.js +++ b/install/ui/details.js @@ -323,6 +323,23 @@ IPA.details_facet = function(spec) { } }; + that.create_action_panel = function(container) { + + that.facet_create_action_panel(container); + + var buttons = $('.action-controls', container); + + $('<input/>', { + 'type': 'text', + 'name': 'reset' + }).appendTo(buttons); + + $('<input/>', { + 'type': 'text', + 'name': 'update' + }).appendTo(buttons); + }; + function create_content(container) { var label = IPA.metadata.objects[that.entity_name].label; @@ -356,22 +373,6 @@ IPA.details_facet = function(spec) { details.append('<br/>'); - var action_panel = that.get_action_panel(); - - var ul = $('ul', action_panel); - var buttons = $('.action-controls',action_panel); - - $('<input/>', { - 'type': 'text', - 'name': 'reset' - }).appendTo(buttons); - - $('<input/>', { - 'type': 'text', - 'name': 'update' - }).appendTo(buttons); - - for (var i = 0; i < that.sections.length; ++i) { var section = that.sections[i]; |