summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/certificate.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-04 14:32:47 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:21 +0200
commit09296fc0b302d9a105aacad960c295991fa88a1d (patch)
tree54a4aef171dc65c250b8d01f0d79714d364a84df /install/ui/src/freeipa/certificate.js
parente3ea5e8d5050890a8e7f17271d04954f71dad325 (diff)
downloadfreeipa-09296fc0b302d9a105aacad960c295991fa88a1d.tar.gz
freeipa-09296fc0b302d9a105aacad960c295991fa88a1d.tar.xz
freeipa-09296fc0b302d9a105aacad960c295991fa88a1d.zip
Use text.get for transforming values supplied by spec
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/certificate.js')
-rwxr-xr-xinstall/ui/src/freeipa/certificate.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/certificate.js b/install/ui/src/freeipa/certificate.js
index 4000e5aae..6b3128879 100755
--- a/install/ui/src/freeipa/certificate.js
+++ b/install/ui/src/freeipa/certificate.js
@@ -19,7 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-define(['./ipa', './jquery','dojo/_base/lang', './dialog'], function(IPA, $, lang) {
+define(['./ipa', './jquery','dojo/_base/lang', './text', './dialog'],
+ function(IPA, $, lang, text) {
IPA.cert = {};
@@ -388,7 +389,7 @@ IPA.cert.request_dialog = function(spec) {
that.width = spec.width || 600;
that.height = spec.height || 480;
- that.message = spec.message;
+ that.message = text.get(spec.message);
that.request = spec.request;
@@ -1205,7 +1206,7 @@ IPA.cert.search_facet = function(spec) {
var doc = metadata.doc || '';
$('<option/>', {
- text: option.label,
+ text: text.get(option.label),
value: option.value,
title: doc
}).appendTo(that.search_option);