From 09296fc0b302d9a105aacad960c295991fa88a1d Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 4 Apr 2013 14:32:47 +0200 Subject: Use text.get for transforming values supplied by spec https://fedorahosted.org/freeipa/ticket/3235 --- install/ui/src/freeipa/entity.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install/ui/src/freeipa/entity.js') diff --git a/install/ui/src/freeipa/entity.js b/install/ui/src/freeipa/entity.js index 598a194f2..6a6a60351 100644 --- a/install/ui/src/freeipa/entity.js +++ b/install/ui/src/freeipa/entity.js @@ -21,7 +21,7 @@ * along with this program. If not, see . */ -define(['./ipa', './jquery', './facet'], function(IPA, $) { +define(['./ipa', './jquery', './text', './facet'], function(IPA, $, text) { IPA.entity = function(spec) { @@ -35,7 +35,7 @@ IPA.entity = function(spec) { var that = {}; that.name = spec.name; - that.label = spec.label; + that.label = text.get(spec.label); that.defines_key = spec.defines_key !== undefined ? spec.defines_key : true; @@ -72,7 +72,7 @@ IPA.entity = function(spec) { }; } } - that.label = that.label || that.metadata.label || that.name; + that.label = text.get(that.label) || that.metadata.label || that.name; }; that.get_default_metadata = function() { -- cgit