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