Skip to content

Commit

Permalink
Fix window.makeGrid is not a function
Browse files Browse the repository at this point in the history
Signed-off-by: Liviu-Mihail Concioiu <[email protected]>
  • Loading branch information
liviuconcioiu committed Jan 20, 2025
1 parent 9fa7c7c commit abe562c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/src/sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ AJAX.registerOnload('sql.js', function () {
*/
$(document).on('makeGrid', '.sqlqueryresults', function () {
$('.table_results').each(function () {
makeGrid(this);
if ($(this).find('td.grid_edit').length > 0) {
makeGrid(this);
}
});
});

Expand Down

0 comments on commit abe562c

Please sign in to comment.