summaryrefslogtreecommitdiffstats
path: root/install/ui/src
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-17 16:57:23 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:27 +0200
commitff81965e71f2f982e8ce9f49a078ac1dd0504c2f (patch)
tree8909208408282dfd961b773683b15ffeacbc8eae /install/ui/src
parentc206249bd2321535883d36493d76b7de4ed59299 (diff)
downloadfreeipa-ff81965e71f2f982e8ce9f49a078ac1dd0504c2f.tar.gz
freeipa-ff81965e71f2f982e8ce9f49a078ac1dd0504c2f.tar.xz
freeipa-ff81965e71f2f982e8ce9f49a078ac1dd0504c2f.zip
Allow metadata provider format for field metadata declaration
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src')
-rw-r--r--install/ui/src/freeipa/field.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/field.js b/install/ui/src/freeipa/field.js
index 6d05a256f..17f440aba 100644
--- a/install/ui/src/freeipa/field.js
+++ b/install/ui/src/freeipa/field.js
@@ -25,6 +25,7 @@
define([
'dojo/_base/array',
'dojo/_base/lang',
+ './_base/metadata_provider',
'./builder',
'./ipa',
'./jquery',
@@ -32,7 +33,7 @@ define([
'./phases',
'./reg',
'./text'],
- function(array, lang, builder, IPA, $, navigation, phases, reg, text) {
+ function(array, lang, metadata_provider, builder, IPA, $, navigation, phases, reg, text) {
var exp = {};
@@ -86,6 +87,9 @@ IPA.field = function(spec) {
that.dirty_changed = IPA.observer();
var init = function() {
+ if (typeof that.metadata === 'string') {
+ that.metadata = metadata_provider.get(that.metadata);
+ }
if (!that.metadata && that.entity) {
that.metadata = IPA.get_entity_param(that.entity.name, that.param);
}