diff --git a/js/db_structure.js b/js/db_structure.js index fd763a6c8f..b73229f142 100644 --- a/js/db_structure.js +++ b/js/db_structure.js @@ -187,21 +187,21 @@ function PMA_fetchRealRowCount($target) * */ function PMA_searchTables() { - var filter, table, tr; - filter = $("#tableSearch").val().toUpperCase(); - table = $("#structureTable")[0]; - tr = table.getElementsByTagName("tr"); - - for (i = 0; i < tr.length; i++) { - a = tr[i].getElementsByTagName("a")[0]; - if (a) { - if (a.text.trim().toUpperCase().indexOf(filter) > -1) { - tr[i].style.display = ""; - } else { - tr[i].style.display = "none"; - } - } - } + var filter, table, tr; + filter = $("#tableSearch").val().toUpperCase(); + table = $("#structureTable")[0]; + tr = table.getElementsByTagName("tr"); + + for (i = 0; i < tr.length; i++) { + a = tr[i].getElementsByTagName("a")[0]; + if (a) { + if (a.text.trim().toUpperCase().indexOf(filter) > -1) { + tr[i].style.display = ""; + } else { + tr[i].style.display = "none"; + } + } + } } AJAX.registerOnload('db_structure.js', function () {