From 49e5555b11d0bee814bce807acacbfeb381379f1 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 20 Dec 2011 15:08:03 +0100 Subject: Fixed labels in Sudo, HBAC rules Fixed regression in labels introduced by refactoring #1515. https://fedorahosted.org/freeipa/ticket/1515 --- install/ui/sudo.js | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'install/ui/sudo.js') diff --git a/install/ui/sudo.js b/install/ui/sudo.js index 99146182..aaa56ccb 100644 --- a/install/ui/sudo.js +++ b/install/ui/sudo.js @@ -237,32 +237,21 @@ IPA.sudorule_details_facet = function(spec) { // Options // - spec.fields.push.apply(spec.fields, [ + spec.fields.push( { name: 'ipasudoopt', widget: 'options.ipasudoopt' } - ]); + ); - spec.widgets.push.apply(spec.widgets, [ + spec.widgets.push( { factory: IPA.sudo.options_section, name: 'options', label: IPA.messages.objects.sudorule.options, facet: that } - ]); - -/* - function options_section(){ - var section = IPA.sudo.options_section({ - name: 'options', - label: IPA.messages.objects.sudorule.options, - entity: that.entity, - facet: that - }); - return section; - }*/ + ); // // Users @@ -469,11 +458,11 @@ IPA.sudorule_details_facet = function(spec) { options: [ { value: 'all', - label: IPA.messages.objects.sudorule.anyone + label: IPA.messages.objects.sudorule.any_command }, { value: '', - label: IPA.messages.objects.sudorule.specified_users + label: IPA.messages.objects.sudorule.specified_commands } ], tables: [ -- cgit