This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git


The following commit(s) were added to refs/heads/master by this push:
     new e186fa6  Hack to avoid double table creation for master
e186fa6 is described below

commit e186fa6883f0793e17ffaa95e3fb6a671e9cda25
Author: Dmitriy Pavlov <dpav...@apache.org>
AuthorDate: Sat Nov 10 20:28:24 2018 +0300

    Hack to avoid double table creation for master
---
 ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js 
b/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js
index 22073b7..89d351e 100644
--- a/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js
+++ b/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js
@@ -1,8 +1,8 @@
 function drawTable(srvId, suiteId, element) {
+    let tableId = "serverContributions-" + srvId;
 
     element.append("<div id='expandAllButton' align='right' 
style='margin-right:50px'></div><br>" +
-        "<table id=\"serverContributions-" +
-        srvId + "\" class=\"ui-widget ui-widget-content\">\n" +
+        "<table id=\"" + tableId + "\" class='ui-widget ui-widget-content'>\n" 
+
         "            <thead>\n" +
         "            <tr class=\"ui-widget-header \">\n" +
         "                <th>.</th>\n" +
@@ -22,6 +22,11 @@ function requestTableForServer(srvId, suiteId, element) {
     if (srvId != "apache")
         return;
 
+    let tableId = "serverContributions-" + srvId;
+
+    if ($("#" + tableId).length > 0)
+        return;
+
     drawTable(srvId, suiteId, element);
 
     $.ajax({

Reply via email to