You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-28 07:41:55 +03:00
Do not catch HTML requests in console
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
@@ -191,7 +191,10 @@ var PMA_console = {
|
|||||||
PMA_consoleMessages.showInstructions(PMA_console.config.enterExecutes);
|
PMA_consoleMessages.showInstructions(PMA_console.config.enterExecutes);
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).ajaxComplete(function (event, xhr) {
|
$(document).ajaxComplete(function (event, xhr, ajaxOptions) {
|
||||||
|
if (ajaxOptions.dataType != 'json') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
var data = $.parseJSON(xhr.responseText);
|
var data = $.parseJSON(xhr.responseText);
|
||||||
PMA_console.ajaxCallback(data);
|
PMA_console.ajaxCallback(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user