Fixed the empty notice divison being generated when PMA_showMessage() was being passed a NULL query
This commit is contained in:
@@ -44,6 +44,12 @@ $(document).ready(function() {
|
||||
.end()
|
||||
.after(data.sql_query);
|
||||
|
||||
//Remove the empty notice div generated due to a NULL query passed to PMA_showMessage()
|
||||
var notice_class = $("#topmenucontainer").next("div").find('.notice');
|
||||
if($(notice_class).text() == '') {
|
||||
$(notice_class).remove();
|
||||
}
|
||||
|
||||
$("<span>" + PMA_messages['strReloadDatabase'] + "?</span>").dialog({
|
||||
buttons: button_options
|
||||
}) //end dialog options
|
||||
|
Reference in New Issue
Block a user