Simplifies a lot by using cursors
This commit is contained in:
@@ -122,3 +122,9 @@ htmx.defineExtension('trigger-filter', {
|
||||
initDatepicker = function(elem) {
|
||||
elem.dp = new Datepicker(elem, {format: "mm/dd/yyyy", autohide: true});
|
||||
}
|
||||
|
||||
countRows = function(id) {
|
||||
var table = document.querySelector(id);
|
||||
var rows = table.querySelectorAll("tbody tr");
|
||||
return rows.length;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user