Do not catch HTML requests in console
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
edcecdb87d
commit
d344a8f7ae
@ -191,7 +191,10 @@ var PMA_console = {
|
||||
PMA_consoleMessages.showInstructions(PMA_console.config.enterExecutes);
|
||||
});
|
||||
|
||||
$(document).ajaxComplete(function (event, xhr) {
|
||||
$(document).ajaxComplete(function (event, xhr, ajaxOptions) {
|
||||
if (ajaxOptions.dataType != 'json') {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
var data = $.parseJSON(xhr.responseText);
|
||||
PMA_console.ajaxCallback(data);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user