diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-04 14:32:47 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:21 +0200 |
commit | 09296fc0b302d9a105aacad960c295991fa88a1d (patch) | |
tree | 54a4aef171dc65c250b8d01f0d79714d364a84df /install/ui/src/freeipa/dialog.js | |
parent | e3ea5e8d5050890a8e7f17271d04954f71dad325 (diff) | |
download | freeipa-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/dialog.js')
-rw-r--r-- | install/ui/src/freeipa/dialog.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/dialog.js b/install/ui/src/freeipa/dialog.js index a553814f4..103f3b92f 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 <http://www.gnu.org/licenses/>. */ -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 ? |