From 99a7e90c0a8315da0bfcb3df28c198ea403e4e7a Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 29 Aug 2011 17:34:10 -0500 Subject: Fixed hard-coded UI messages. Some hard-coded messages in ipa.js have been moved into internal.py. The messages in internal.py have been rearranged to match the output (ipa_init.json). A new method IPA.get_message() has been added to take a message ID and return the translated message or a default message if not found. Ticket #1701 --- install/ui/entity.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'install/ui/entity.js') diff --git a/install/ui/entity.js b/install/ui/entity.js index ce028a2eb..bba51f79f 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -138,8 +138,7 @@ IPA.facet = function (spec) { that.entity.redirect_facet); }; - var redirect_errors = - ["IPA Error 4001"]; + var redirect_errors = [4001]; that.on_error = function(xhr, text_status, error_thrown) { @@ -147,7 +146,7 @@ IPA.facet = function (spec) { as there is nothing any other facet can do either. */ if (that.entity.redirect_facet) { for (var i=0; i