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:29:45 +0000 |
commit | 6c6748748bca8dba6e8af55917e92839734bbc7b (patch) | |
tree | 8fb460f0874cc173a2f0086f12722831f3d79cb8 /install/ui/entity.js | |
parent | 6a2dfde086bdda62964a9737a300818d2ab24a4b (diff) | |
download | freeipa.git-6c6748748bca8dba6e8af55917e92839734bbc7b.tar.gz freeipa.git-6c6748748bca8dba6e8af55917e92839734bbc7b.tar.xz freeipa.git-6c6748748bca8dba6e8af55917e92839734bbc7b.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 ce028a2e..bba51f79 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; } |