diff --git a/src/js/templates/tableEditor.html b/src/js/templates/tableEditor.html index c954e086a..c514d303d 100644 --- a/src/js/templates/tableEditor.html +++ b/src/js/templates/tableEditor.html @@ -22,7 +22,7 @@ -
+
`; th.appendChild(span); @@ -372,7 +415,7 @@ define([ `; cell.appendChild(span); cell.appendChild(dropDownDiv); - cell.setAttribute("class", "row-header"); + cell.setAttribute("class", CLASS_NAMES.rowHeader); } else { cell.contentEditable = true; } @@ -665,14 +708,14 @@ define([ document .getElementById(`col-dropdown-${idArr[2]}`) .classList.toggle("show"); - } else if (classes.contains("col-dropdown-option")) { + } else if (classes.contains(CLASS_NAMES.colOption)) { const index = e.target.parentNode.id.split("-")[2]; if (classes.contains("col-insert-left")) { view.addColumn(index, "left"); } else if (classes.contains("col-insert-right")) { view.addColumn(index, "right"); - } else if (classes.contains("col-sort")) { + } else if (classes.contains(CLASS_NAMES.sortButton)) { view.sortColumn(index); } else if (classes.contains("col-delete")) { view.deleteColumn(index);