Patrick Brosi 4 lat temu
rodzic
commit
7e36c399b5
2 zmienionych plików z 3 dodań i 2 usunięć
  1. 1 1
      web/index.html
  2. 2 1
      web/script.js

Plik diff jest za duży
+ 1 - 1
web/index.html


+ 2 - 1
web/script.js

@@ -91,6 +91,7 @@ function renderStat(stat) {
91 91
         var row = document.createElement('tr');
92 92
         var col1 = document.createElement('td');
93 93
         var col2 = document.createElement('td');
94
+        col2.className = "err-wrap";
94 95
         tbody.appendChild(row);
95 96
         row.appendChild(col1);
96 97
         row.appendChild(col2);
@@ -107,7 +108,7 @@ function renderStat(stat) {
107 108
         var info = document.createElement('div');
108 109
 
109 110
         if (err.other_osmid != stat.osmid) {
110
-            info.innerHTML = "Does not match node <a onmouseover='nodeHl( " + err.other + ")' onmouseout='nodeUnHl( " + err.other + ")' target=\"_blank\" href=\"https://www.openstreetmap.org/node/" + err.other_osmid + "\">" + err.other_osmid + "</a>";
111
+            info.innerHTML = "Does not match <tt>" + err.other_attr[0] + "</tt> in node <a onmouseover='nodeHl( " + err.other + ")' onmouseout='nodeUnHl( " + err.other + ")' target=\"_blank\" href=\"https://www.openstreetmap.org/node/" + err.other_osmid + "\">" + err.other_osmid + "</a>";
111 112
         } else {
112 113
             info.innerHTML = "Does not match '" + err.other_attr[0] + "' = '" + err.other_attr[1];
113 114
         }