diff --git a/bt5/erp5_sql_browser/SkinTemplateItem/portal_skins/erp5_sql_browser/ZMySQLDAConnection_viewQueryBrowser.html b/bt5/erp5_sql_browser/SkinTemplateItem/portal_skins/erp5_sql_browser/ZMySQLDAConnection_viewQueryBrowser.html index ca302e1cf114cc717e3207e02f886dd59053ecfe..224f74f359a39e27c1759fa0f71492b2ad09bb9d 100644 --- a/bt5/erp5_sql_browser/SkinTemplateItem/portal_skins/erp5_sql_browser/ZMySQLDAConnection_viewQueryBrowser.html +++ b/bt5/erp5_sql_browser/SkinTemplateItem/portal_skins/erp5_sql_browser/ZMySQLDAConnection_viewQueryBrowser.html @@ -71,8 +71,7 @@ var intFormat = numberFormat({digitsAfterDecimal: 0}); var notification = noty({type: "info", text: "Refreshing data", layout: "bottom"}); - $.getJSON("ZMySQLDAConnection_getQueryResultAsJSON", {query: editor.getValue()}, function(mps) { - + $.post("ZMySQLDAConnection_getQueryResultAsJSON", {query: editor.getValue()}, function(mps) { ht.clear(); if (mps.length > 1) { ht.updateSettings({ @@ -104,7 +103,7 @@ }); notification.close(); } - ).fail(function(jqXHR, textStatus, errorThrown) { + , 'json').fail(function(jqXHR, textStatus, errorThrown) { notification.close(); noty({type: "error", text: jqXHR.responseText, timeout: 5000, layout: "bottom" }); });