summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/details.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-11 17:02:48 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:24 +0200
commit3b77c63b2acfc36b4f8472018acc2d177c8fd0db (patch)
treeaa4fcbf07a8404e317e3d75b9974ab1fbcb5d372 /install/ui/src/freeipa/details.js
parent0dc4b133fb0795b9c55f8a9fc95b55bc4df7ebf2 (diff)
downloadfreeipa-3b77c63b2acfc36b4f8472018acc2d177c8fd0db.tar.gz
freeipa-3b77c63b2acfc36b4f8472018acc2d177c8fd0db.tar.xz
freeipa-3b77c63b2acfc36b4f8472018acc2d177c8fd0db.zip
Use IPA.object() as a base factory for framework objects
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/details.js')
-rw-r--r--install/ui/src/freeipa/details.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/install/ui/src/freeipa/details.js b/install/ui/src/freeipa/details.js
index dffa187e9..69c85d54e 100644
--- a/install/ui/src/freeipa/details.js
+++ b/install/ui/src/freeipa/details.js
@@ -32,7 +32,7 @@ exp.collapsed_icon = IPA.collapsed_icon = 'collapsed-icon';
exp.details_builder = IPA.details_builder = function(spec) {
- var that = {};
+ var that = IPA.object();
that.widgets = spec.container.widgets;
that.fields = spec.container.fields;
@@ -104,7 +104,7 @@ exp.section_builder = IPA.section_builder = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.container = spec.container;
that.section_factory = spec.section_factory || IPA.details_table_section;
@@ -167,7 +167,7 @@ exp.section_builder = IPA.section_builder = function(spec) {
exp.facet_policy = IPA.facet_policy = function() {
- var that = {};
+ var that = IPA.object();
that.init = function() {
};
@@ -183,7 +183,7 @@ exp.facet_policy = IPA.facet_policy = function() {
exp.facet_policies = IPA.facet_policies = function(spec) {
- var that = {};
+ var that = IPA.object();
that.container = spec.container;
that.policies = [];
@@ -721,7 +721,7 @@ exp.details_facet = IPA.details_facet = function(spec, no_init) {
exp.update_info = IPA.update_info = function(spec) {
- var that = {};
+ var that = IPA.object();
that.fields = spec.fields || [];
that.commands = spec.commands || [];
@@ -741,7 +741,7 @@ exp.update_info = IPA.update_info = function(spec) {
exp.command_info = IPA.command_info = function(spec) {
- var that = {};
+ var that = IPA.object();
that.command = spec.command;
that.priority = spec.priority || IPA.config.default_priority;
@@ -751,7 +751,7 @@ exp.command_info = IPA.command_info = function(spec) {
exp.field_info = IPA.field_info = function(spec) {
- var that = {};
+ var that = IPA.object();
that.field = spec.field;
that.value = spec.value;
@@ -761,7 +761,7 @@ exp.field_info = IPA.field_info = function(spec) {
exp.update_info_builder = IPA.update_info_builder = function() {
- var that = {};
+ var that = IPA.object();
that.new_update_info = function (fields, commands) {
return IPA.update_info({
@@ -801,7 +801,7 @@ exp.update_info_builder = IPA.update_info_builder = function() {
exp.command_builder = IPA.command_builder = function() {
- var that = {};
+ var that = IPA.object();
that.add_field_option = function(command, field, values) {
if (!field || !values) return;