Send ajax request as 'application/json', while fetching the modified sql

from the dialog properties.
This commit is contained in:
Ashesh Vashi
2016-01-05 02:17:37 +05:30
parent faa984debc
commit 1945872e3f

View File

@@ -977,7 +977,9 @@
url: msql_url,
type: 'GET',
cache: false,
data: self.model.toJSON(true)
data: self.model.toJSON(true),
dataType: "json",
contentType: "application/json"
}).done(function(res) {
self.sqlTab.clearHistory();
self.sqlTab.setValue(res.data);