From 4a8c43aa324beff5bebfa9a699b1dc4b29020731 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 16 Feb 2011 12:46:59 -0600 Subject: I18n update. Hard-coded messages through out the code have been replaced by i18n messages obtained from json_metadata and i18n_messages. --- install/ui/rule.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'install/ui/rule.js') diff --git a/install/ui/rule.js b/install/ui/rule.js index a6e11f2c..9076f4ee 100644 --- a/install/ui/rule.js +++ b/install/ui/rule.js @@ -40,7 +40,8 @@ IPA.rule_details_section = function (spec){ if (that.text) container.append(that.text); - var param_info = IPA.get_param_info(that.entity_name, that.field_name); + var field = that.get_field(that.field_name); + var param_info = IPA.get_entity_param(that.entity_name, that.field_name); var span = $('', { name: that.field_name, @@ -64,12 +65,7 @@ IPA.rule_details_section = function (spec){ span.append(' '); } - $('', { - 'name': 'undo', - 'class': 'ui-state-highlight ui-corner-all', - 'style': 'display: none;', - 'html': 'undo' - }).appendTo(span); + field.create_undo(span); span.append('
'); } @@ -77,14 +73,14 @@ IPA.rule_details_section = function (spec){ for (var j=0; j', { name: table.field_name, title: param_info ? param_info.doc : table.field_name }).appendTo(span); - var field = that.get_field(table.field_name); + field = that.get_field(table.field_name); field.create(table_span); } }; -- cgit