Fixed bug #3430377 - Deleted search results remain visible

This commit is contained in:
Rouslan Placella
2011-10-30 14:30:08 +00:00
parent 694c1cdf75
commit f7cb55cb62
2 changed files with 14 additions and 11 deletions

View File

@@ -5,6 +5,7 @@ phpMyAdmin - ChangeLog
- bug #3425230 [interface] enum data split at space char (more space to edit) - bug #3425230 [interface] enum data split at space char (more space to edit)
- bug #3426840 [interface] ENUM/SET editor can't handle commas in values - bug #3426840 [interface] ENUM/SET editor can't handle commas in values
- bug #3427256 [interface] no links to browse/empty views and tables - bug #3427256 [interface] no links to browse/empty views and tables
- bug #3430377 [interface] Deleted search results remain visible
3.4.7.0 (2011-10-23) 3.4.7.0 (2011-10-23)
- bug #3418610 [interface] Links in navigation when $cfg['MainPageIconic'] = false - bug #3418610 [interface] Links in navigation when $cfg['MainPageIconic'] = false

View File

@@ -48,18 +48,20 @@ function deleteResult(result_path , msg , ajaxEnable){
{ {
if(ajaxEnable) if(ajaxEnable)
{ {
var $msg = PMA_ajaxShowMessage(PMA_messages['strDeleting']);
/** Load the deleted option to the page*/ /** Load the deleted option to the page*/
$('#browse-results').load(result_path + " '"+'#result_query' + "'"); $('#browse-results').load(result_path + " '"+'#result_query' + "'", function () { // FIXME: no need for two ajax reqests here
$('#sqlqueryform').load(result_path + " '"+'#sqlqueryform' + "'"); $('#sqlqueryform').load(result_path + " '"+'#sqlqueryform' + "'", function () { // since they both fetch the same page
$('#togglequerybox').html(PMA_messages['strHideQueryBox']);
/** Refresh the search results after the deletion */ /** Refresh the search results after the deletion */
document.getElementById('buttonGo'). click(); document.getElementById('buttonGo').click();
//PMA_ajaxShowMessage(PMA_messages['strDeleting']); $('#togglequerybox').html(PMA_messages['strHideQueryBox']);
PMA_ajaxRemoveMessage($msg);
/** Show the results of the deletion option */ /** Show the results of the deletion option */
$('#browse-results').show(); $('#browse-results').show();
$('#sqlqueryform').show(); $('#sqlqueryform').show();
$('#togglequerybox').show(); $('#togglequerybox').show();
});
});
} }
else else
{ {