Merge remote branch 'origin/master'

This commit is contained in:
Pootle server
2010-10-09 18:40:10 +02:00

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