summaryrefslogtreecommitdiffstats
path: root/install/ui/details.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-04-19 11:53:00 -0500
committerEndi Sukma Dewata <edewata@people01.fedoraproject.org>2011-04-21 19:44:06 +0000
commitd2be41dd1b69020b11cdd6ba66436424f3a0033a (patch)
treed88c09f5a0ef620df4319f2e564689f585299eb6 /install/ui/details.js
parent3528b4eca3cf2519a6af5a43f6b321cbd8eea138 (diff)
downloadfreeipa-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.js33
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];