Bug 1491268 - Bookmarks policy's last field is displayed in same color like all other rows r=Felipe
authorArshad Kazmi <arshadkazmi42@gmail.com>
Tue, 02 Oct 2018 14:17:29 +0000
changeset 487548 b79da889f39bb028073d6b2b0bf042a05cb42c52
parent 487547 b9a19eb6f805500a3f9a80b44f2337f8d7d777e7
child 487549 e9fda19be060c1200bd2948322532e7648bed6b1
push id246
push userfmarier@mozilla.com
push dateSat, 13 Oct 2018 00:15:40 +0000
reviewersFelipe
bugs1491268
milestone64.0a1
Bug 1491268 - Bookmarks policy's last field is displayed in same color like all other rows r=Felipe Differential Revision: https://phabricator.services.mozilla.com/D7238
browser/components/enterprisepolicies/content/aboutPolicies.js
--- a/browser/components/enterprisepolicies/content/aboutPolicies.js
+++ b/browser/components/enterprisepolicies/content/aboutPolicies.js
@@ -156,19 +156,20 @@ function generatePolicy(data, row, depth
           }
         } else if (count == Object.keys(data).length - 1) {
           let last_row = document.createElement("tr");
           for (let i = 0; i < depth; i++) {
             last_row.appendChild(col(""));
           }
 
           last_row.appendChild(col(obj));
+          last_row.classList.add(color_class);
 
           if (arr_sep) {
-            last_row.classList.add(color_class, "arr_sep");
+            last_row.classList.add("arr_sep");
           }
 
           generatePolicy(data[obj], last_row, depth + 1, new_cont, islast ? islast : false, false);
         } else {
           let new_row = document.createElement("tr");
           new_row.classList.add(color_class);
 
           for (let i = 0; i < depth; i++) {