- $(table).find('tr.draggable').each(function () {
- // Extract server-side data for the row.
- const row = this;
- if (row.id in rowsData) {
- const data = rowsData[row.id];
- data.tableDrag = tableDrag;
-
- // Create the row handler, make it accessible from the DOM row
- // element.
- const rowHandler = new rowHandlers[data.rowHandler](row, data);
- $(row).data('fieldUIRowHandler', rowHandler);
- }
- });
+ $(table)
+ .find('tr.draggable')
+ .each(function() {
+ // Extract server-side data for the row.
+ const row = this;
+ if (row.id in rowsData) {
+ const data = rowsData[row.id];
+ data.tableDrag = tableDrag;
+
+ // Create the row handler, make it accessible from the DOM row
+ // element.
+ const rowHandler = new rowHandlers[data.rowHandler](row, data);
+ $(row).data('fieldUIRowHandler', rowHandler);
+ }
+ });