|
|
|
@ -229,6 +229,12 @@
|
|
|
|
|
data: this.mData
|
|
|
|
|
}).then(callback);
|
|
|
|
|
break;
|
|
|
|
|
case "exports":
|
|
|
|
|
return downRequest({
|
|
|
|
|
url: '/ajax/' + this.mModule + "/" + this.mTarget + "/" + this.mMethod,
|
|
|
|
|
data: JSON.stringify(this.mData)
|
|
|
|
|
}).then(callback)
|
|
|
|
|
break;
|
|
|
|
|
case "template":
|
|
|
|
|
return downRequest({
|
|
|
|
|
url: '/ajax/' + this.mModule + "/" + this.mTarget + "/" + this.mMethod,
|
|
|
|
@ -268,31 +274,19 @@
|
|
|
|
|
};
|
|
|
|
|
this.template = function (callback) {
|
|
|
|
|
this.mMethod = "template";
|
|
|
|
|
return downRequest({
|
|
|
|
|
url: '/ajax/' + this.mModule + "/" + this.mTarget + "/" + this.mMethod,
|
|
|
|
|
data: JSON.stringify(this.mData)
|
|
|
|
|
}).then(callback)
|
|
|
|
|
this.post(callback);
|
|
|
|
|
};
|
|
|
|
|
this.imports = function (callback) {
|
|
|
|
|
this.mMethod = "imports";
|
|
|
|
|
return importRequest({
|
|
|
|
|
url: '/ajax/' + this.mModule + "/" + this.mTarget + "/" + this.mMethod,
|
|
|
|
|
data: this.mData
|
|
|
|
|
}).then(callback)
|
|
|
|
|
this.post(callback);
|
|
|
|
|
};
|
|
|
|
|
this.exports = function (callback) {
|
|
|
|
|
this.mMethod = "exports";
|
|
|
|
|
return downRequest({
|
|
|
|
|
url: '/ajax/' + this.mModule + "/" + this.mTarget + "/" + this.mMethod,
|
|
|
|
|
data: JSON.stringify(this.mData)
|
|
|
|
|
}).then(callback)
|
|
|
|
|
this.post(callback);
|
|
|
|
|
};
|
|
|
|
|
this.upload = function (callback) {
|
|
|
|
|
this.mMethod = "upload";
|
|
|
|
|
return uploadRequest({
|
|
|
|
|
url: '/ajax/' + this.mModule + "/" + this.mTarget + "/" + this.mMethod,
|
|
|
|
|
data: this.mData
|
|
|
|
|
}).then(callback)
|
|
|
|
|
this.post(callback);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|