diff options
author | Tyron Madlener <tyronx@gmail.com> | 2011-07-05 20:09:55 +0400 |
---|---|---|
committer | Tyron Madlener <tyronx@gmail.com> | 2011-07-05 20:09:55 +0400 |
commit | 2ee9f03cbb145547d0e480b86d51f3b4f387b68c (patch) | |
tree | 909ea8d30d74f9e46be2a0d66eb10cc6729ac041 /js/db_search.js | |
parent | b8fbb9d1afef9866d0c9c7428f61ea587d9c80be (diff) |
Merge remote-tracking branch 'origin/master' into tyronm
Diffstat (limited to 'js/db_search.js')
-rw-r--r-- | js/db_search.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/js/db_search.js b/js/db_search.js index 6fff82dec8..0cb04b7f28 100644 --- a/js/db_search.js +++ b/js/db_search.js @@ -26,7 +26,14 @@ function loadResult(result_path , table_name , link , ajaxEnable){ /** Load the browse results to the page */ $("#table-info").show(); $('#table-link').attr({"href" : 'sql.php?'+link }).text(table_name); - $('#browse-results').load(result_path + " '"+'#sqlqueryresults' + "'").show(); + $('#browse-results').load(result_path + " '"+'#sqlqueryresults' + "'", null, function() { + // because under db_search, window.parent.table is not defined yet, + // we assign it manually from #table-link + window.parent.table = $('#table-link').text().trim(); + + appendInlineAnchor(); + $('#table_results').makegrid(); + }).show(); } else { @@ -173,7 +180,6 @@ $(document).ready(function() { if (typeof response == 'string') { // found results $("#searchresults").html(response); - $("#sqlqueryresults").trigger('appendAnchor'); $('#togglesearchresultlink') // always start with the Show message |