Fix #15439 - Designer page status not updated when added a new table from another database

Fixes: #15439
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-09-08 11:08:32 +02:00
parent 854dec7562
commit 57a00351a2
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -623,6 +623,7 @@ function Add_Other_db_tables () {
var dbEncoded = $($newTableDom).find('.small_tab_pref').attr('db_url');
var tableEncoded = $($newTableDom).find('.small_tab_pref').attr('table_name_url');
j_tabs[dbEncoded + '.' + tableEncoded] = 1;
MarkUnsaved();
});
$(this).dialog('close');
};
@ -1024,6 +1025,7 @@ function Save_as () {
selected_page = data.id;
}
$('#page_name').text(name);
Load_page(selected_page);
}
}); // end $.post()
} else {
@ -1183,7 +1185,7 @@ function Export_pages () {
}); // end $.get()
}// end export pages
function Load_page (page) {
function Load_page (page) {// s
if (designer_tables_enabled) {
var param_page = '';
var argsep = PMA_commonParams.get('arg_separator');