diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-08-29 17:34:10 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-08-31 16:30:19 +0000 |
commit | 99a7e90c0a8315da0bfcb3df28c198ea403e4e7a (patch) | |
tree | 063ab3d848ed9a11dfda25fd37992b152acbfbcc /install/ui/entity.js | |
parent | 5a495b91dea527f9ac051655e2fd26ca3f9deab5 (diff) | |
download | freeipa-99a7e90c0a8315da0bfcb3df28c198ea403e4e7a.tar.gz freeipa-99a7e90c0a8315da0bfcb3df28c198ea403e4e7a.tar.xz freeipa-99a7e90c0a8315da0bfcb3df28c198ea403e4e7a.zip |
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
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r-- | install/ui/entity.js | 5 |
1 files changed, 2 insertions, 3 deletions
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<redirect_errors.length; i++) { - if (error_thrown.name === redirect_errors[i]) { + if (error_thrown.code === redirect_errors[i]) { that.redirect(); return; } |