change the class names to properly reflect new style prefixes

This commit is contained in:
Michael Becker 2024-01-09 02:32:11 -05:00
parent 6e1edfea9a
commit b633978a0d
2 changed files with 5 additions and 5 deletions

View File

@ -11,11 +11,11 @@ function CheckBox(parentElement)
this.ParentElement.checked = this.mvarChecked;
if (this.mvarChecked)
{
this.NewParentElement.className = "CheckBox Checked";
this.NewParentElement.className = "uwt-checkbox uwt-checked";
}
else
{
this.NewParentElement.className = "CheckBox";
this.NewParentElement.className = "uwt-checkbox";
}
if (!changed) return;
@ -31,7 +31,7 @@ function CheckBox(parentElement)
}
var child = document.createElement("div");
child.className = "CheckBox";
child.className = "uwt-checkbox";
child.NativeObject = this;
child.addEventListener("click", function(e)
{
@ -41,7 +41,7 @@ function CheckBox(parentElement)
var fa = document.createElement("i");
fa.className = "fa fa-check";
child.appendChild(fa);
parentElement.style.display = "none";
parentElement.parentNode.insertBefore(child, parentElement);

View File

@ -480,7 +480,7 @@ function ListView(parentElement)
// begin : magic - do not even begin to attempt to understand this logic
for (var i = 0; i < parentElement.tHead.rows[0].cells.length; i++)
{
if (parentElement.tHead.rows[0].cells[i].childNodes[0].className == "CheckBox")
if (parentElement.tHead.rows[0].cells[i].childNodes[0].className == "uwt-checkbox")
{
(function(i)
{