bug #3072498 Creating table does not give any feedback

This commit is contained in:
Marc Delisle
2010-10-09 10:46:34 -04:00
parent e3e0b2ef99
commit f9ca960f85

View File

@@ -2064,7 +2064,12 @@ $(document).ready(function() {
* @var tables_table Object referring to the <tbody> element that holds the list of tables
*/
var tables_table = $("#tablesForm").find("tbody").not("#tbl_summary_row");
// this is the first table created in this db
if (tables_table.length == 0) {
if (window.parent && window.parent.frame_content) {
window.parent.frame_content.location.reload();
}
} else {
/**
* @var curr_last_row Object referring to the last <tr> element in {@link tables_table}
*/
@@ -2095,6 +2100,7 @@ $(document).ready(function() {
//Sort the table
$(tables_table).PMA_sort_table('th');
}
//Refresh navigation frame as a new table has been added
if (window.parent && window.parent.frame_navigation) {