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 494914 b79da889f39bb028073d6b2b0bf042a05cb42c52
parent 494913 b9a19eb6f805500a3f9a80b44f2337f8d7d777e7
child 494915 e9fda19be060c1200bd2948322532e7648bed6b1
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersFelipe
bugs1491268
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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++) {