replace last Request by $.ajax

This commit is contained in:
Ezequiel Bergamaschi 2014-08-03 17:07:48 -03:00
parent 4ac182f0d9
commit 75739389cc

View File

@ -71,18 +71,17 @@ function buildDesigner(options) {
}
errorMsg = errorMsg.toString();
new Request({
$.ajax({
method:'post',
url:"/c/restful/logger/editor",
headers:{"Content-Type":"application/json", "Accept":"application/json"},
emulation:false,
urlEncoded:false
}).post(JSON.encode({
data: {
jsErrorMsg: "Message: '" + errorMsg + "', line:'" + lineNo + "', url: :" + url,
jsStack: window.errorStack,
userAgent: navigator.userAgent,
mapId:options.mapId}));
mapId: options.mapId
}
});
// Close loading dialog ...
if (window.waitDialog) {
@ -132,17 +131,16 @@ function buildDesigner(options) {
function loadDesignerOptions(jsonConf) {
// Load map options ...
var result;
var me = this;
if (jsonConf) {
var request = new Request.JSON({
$.ajax({
url: jsonConf,
async: false,
onSuccess:function (options) {
this.options = options;
}.bind(this)
method: 'get',
success: function (options) {
me.options = options;
}
);
request.get();
});
result = this.options;
}
else {