From b2ee5e6bfe0b5d74ddef8a8a0854ad6606dcb9e0 Mon Sep 17 00:00:00 2001
From: Adam Young <ayo...@redhat.com>
Date: Wed, 2 Mar 2011 23:21:07 -0500
Subject: [PATCH] fix truncated message

---
 install/ui/policy.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/install/ui/policy.js b/install/ui/policy.js
index c35696b617c3ff1e47688d9b643ea2d7190de84b..54a0f36eaccd31c8e637a6f174b0ee12432e393f 100644
--- a/install/ui/policy.js
+++ b/install/ui/policy.js
@@ -501,12 +501,17 @@ IPA.records_facet = function (spec){
             generate_tr(thead, tbody, result[i]);
         }
 
+        tfoot.find('td').remove();
         if (data.result.truncated) {
             var message = IPA.messages.search.truncated;
             message = message.replace('${counter}', data.result.count);
-            tfoot.text(message);
+            tfoot.append($('<td />',{
+                colspan:2,
+                text:message}));
         } else {
-            tfoot.text(data.result.summary);
+            tfoot.append($('<td/>',{
+                colspan:2,
+                text:data.result.summary}));
         }
 
     }
-- 
1.7.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to