You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/04/27 12:35:01 UTC

[GitHub] [accumulo] ctubbsii commented on a diff in pull request #2652: Replace more js with jquery in server.js

ctubbsii commented on code in PR #2652:
URL: https://github.com/apache/accumulo/pull/2652#discussion_r859743294


##########
server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/server.js:
##########
@@ -61,67 +61,60 @@ function refreshDetailTable() {
  * Generates the server history table
  */
 function refreshHistoryTable() {
-
-  clearTableBody('opHistoryDetails');
-
   var data = sessionStorage.server === undefined ?
       [] : JSON.parse(sessionStorage.server);
 
   if (data.length === 0 || data.allTimeTabletResults === undefined) {
-    var row = [];
-
-    row.push(createEmptyRow(8, 'Empty'));
-
-    $('<tr/>', {
-      html: row.join('')
-    }).appendTo('#opHistoryDetails tbody');
+    $("#opHistoryDetails > tbody > tr > td").each(function () {
+        $(this).text(0);
+    });

Review Comment:
   Should you just put `""` then?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org