diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-17 16:57:23 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:27 +0200 |
commit | ff81965e71f2f982e8ce9f49a078ac1dd0504c2f (patch) | |
tree | 8909208408282dfd961b773683b15ffeacbc8eae /install/ui/src | |
parent | c206249bd2321535883d36493d76b7de4ed59299 (diff) | |
download | freeipa-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.js | 6 |
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); } |