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/dialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install/ui/src/freeipa/dialog.js') diff --git a/install/ui/src/freeipa/dialog.js b/install/ui/src/freeipa/dialog.js index a553814f..103f3b92 100644 --- a/install/ui/src/freeipa/dialog.js +++ b/install/ui/src/freeipa/dialog.js @@ -20,7 +20,7 @@ * along with this program. If not, see . */ -define(['./ipa', './jquery', './field', './widget'], function(IPA, $) { +define(['./ipa', './jquery', './text', './field', './widget'], function(IPA, $, text) { IPA.opened_dialogs = { @@ -57,7 +57,7 @@ IPA.dialog_button = function(spec) { var that = {}; that.name = spec.name; - that.label = spec.label || spec.name; + that.label = text.get(spec.label || spec.name); that.click = spec.click || click; that.visible = spec.visible !== undefined ? spec.visible : true; @@ -91,7 +91,7 @@ IPA.dialog = function(spec) { that.entity = IPA.get_entity(spec.entity); that.name = spec.name || 'dialog'; that.id = spec.id; - that.title = spec.title; + that.title = text.get(spec.title); that.width = spec.width || 500; that.height = spec.height; that.close_on_escape = spec.close_on_escape !== undefined ? -- cgit