Commit dd9fae61 authored by Jérome Perrin's avatar Jérome Perrin

sql_browser: use POST request to send query

parent a447541d
......@@ -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" });
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment