bug #4434 Unchecking 'Show SQL queries' results NaN
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
4c706d0927
commit
55e87fe8fe
@ -15,6 +15,7 @@ phpMyAdmin - ChangeLog
|
||||
- bug Query error on submitting a column change form containing a disabled input field
|
||||
- bug Incorrect menu tab generation from usergroups
|
||||
- bug Missing space in index creation/edit generated query
|
||||
- bug #4434 Unchecking 'Show SQL queries' results NaN
|
||||
|
||||
4.2.2.0 (2014-05-20)
|
||||
- bug #4388 Disable database expansion when enabled throws Error 500 when database name is clicked in navigation tree
|
||||
|
||||
@ -1286,16 +1286,17 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi
|
||||
var $result_query = $($.parseHTML(data.sql_query));
|
||||
var sqlOuter = $result_query.find('.sqlOuter').wrap('<p>').parent().html();
|
||||
var tools = $result_query.find('.tools').wrap('<p>').parent().html();
|
||||
// If two query box exists update query in second else add a second box
|
||||
if($('#result_query').find('div.sqlOuter').length>1) {
|
||||
$('#result_query').children(":nth-child(4)").remove();
|
||||
$('#result_query').children(":nth-child(4)").remove();
|
||||
$('#result_query').append(sqlOuter+tools);
|
||||
if (typeof sqlOuter != 'undefined' && typeof tools != 'undefined') {
|
||||
// If two query box exists update query in second else add a second box
|
||||
if ($('#result_query').find('div.sqlOuter').length > 1) {
|
||||
$('#result_query').children(":nth-child(4)").remove();
|
||||
$('#result_query').children(":nth-child(4)").remove();
|
||||
$('#result_query').append(sqlOuter + tools);
|
||||
} else {
|
||||
$('#result_query').append(sqlOuter + tools);
|
||||
}
|
||||
PMA_highlightSQL($('#result_query'));
|
||||
}
|
||||
else {
|
||||
$('#result_query').append(sqlOuter+tools);
|
||||
}
|
||||
PMA_highlightSQL($('#result_query'));
|
||||
}
|
||||
// hide and/or update the successfully saved cells
|
||||
g.hideEditCell(true, data);
|
||||
@ -1861,7 +1862,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi
|
||||
});
|
||||
})
|
||||
.mouseleave(function (e) {
|
||||
g.showSortHint = false;
|
||||
g.showSortHint = false;
|
||||
g.showRemColHint = false;
|
||||
$(t).find("th.draggable").tooltip("option", {
|
||||
content: g.updateHint()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user