Feature: #12069: Filtering tables on table listing of particular database.

Signed-off-by: Yunus Çağrı <ycagriyurdakul@gmail.com>
This commit is contained in:
Yunus Çağrı 2016-12-19 23:19:06 +03:00
parent ec4ef65f36
commit b19085b37b

View File

@ -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 () {