summaryrefslogtreecommitdiffstats
path: root/install/ui/entity.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-08-31 14:47:03 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-09-01 14:12:15 +0000
commit6892d6e594ae5594261d2975bd745549e7684988 (patch)
tree2534e8a0477f246da1c2e86b2179e153dadc0fc7 /install/ui/entity.js
parent15cada3733046d4407df5d1269c040a6a7872ca9 (diff)
downloadfreeipa-6892d6e594ae5594261d2975bd745549e7684988.tar.gz
freeipa-6892d6e594ae5594261d2975bd745549e7684988.tar.xz
freeipa-6892d6e594ae5594261d2975bd745549e7684988.zip
Fixed hard-coded UI message in entity.js.
The hard-coded label in IPA.facet has been moved into internal.py to allow translation. Ticket #1701
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r--install/ui/entity.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js
index bba51f79f..8b05d475a 100644
--- a/install/ui/entity.js
+++ b/install/ui/entity.js
@@ -117,14 +117,12 @@ IPA.facet = function (spec) {
return false;
};
- that.get_content = function() {
- return $('.content', that.container);
- };
-
- that.report_error = function(error_thrown){
- var details = $('.details', that.container).empty();
- details.append('<p>Error: '+error_thrown.name+'</p>');
- details.append('<p>'+error_thrown.message+'</p>');
+ that.report_error = function(error_thrown) {
+ // TODO: The error message should be displayed in the facet footer.
+ // There should be a standard footer section for all facets.
+ that.content.empty();
+ that.content.append('<p>'+IPA.get_message('errors.error', 'Error')+': '+error_thrown.name+'</p>');
+ that.content.append('<p>'+error_thrown.message+'</p>');
};
that.redirect = function() {