diff --git a/js/src/sql.js b/js/src/sql.js index 38c4f82327..d7bb9272b0 100644 --- a/js/src/sql.js +++ b/js/src/sql.js @@ -410,7 +410,7 @@ AJAX.registerOnload('sql.js', function () { */ $(document).on('makeGrid', '.sqlqueryresults', function () { $('.table_results').each(function () { - if ($(this).find('td.grid_edit').length > 0) { + if (typeof window.makeGrid === 'function') { makeGrid(this); } });