提交 37a57831 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'feature/optimize' into 'develop'

表单性能优化

See merge request o2oa/o2oa!1513
......@@ -1239,11 +1239,22 @@
var _cacheUrls = [
/jaxrs\/form\/workorworkcompleted\/.+/ig,
/jaxrs\/form\/.+/ig,
// /jaxrs\/script/ig,
/jaxrs\/script\/.+\/app\/.+\/imported/ig,
/jaxrs\/script\/portal\/.+\/name\/.+\/imported/ig,
/jaxrs\/script\/.+\/application\/.+\/imported/ig,
/jaxrs\/page\/.+\/portal\/.+/ig
/jaxrs\/page\/.+\/portal\/.+/ig,
/jaxrs\/document\/.+/ig,
/jaxrs\/applicationdict\/.+/ig,
/jaxrs\/custom\/.+/ig
///jaxrs\/form\/workorworkcompleted\/.+/ig,
// /jaxrs\/script/ig,
// /jaxrs\/script\/.+\/app\/.+\/imported/ig,
// /jaxrs\/script\/portal\/.+\/name\/.+\/imported/ig,
// /jaxrs\/script\/.+\/application\/.+\/imported/ig,
// /jaxrs\/page\/.+\/portal\/.+/ig
// /jaxrs\/authentication/ig
// /jaxrs\/statement\/.*\/execute\/page\/.*\/size\/.*/ig
];
......
......@@ -268,9 +268,9 @@ MWF.xApplication.Common.Main = new Class({
window.addEventListener("beforeunload", function (e) {
this.fireAppEvent("queryClose");
}.bind(this));
window.addEventListener("pagehide", function (e) {
this.fireAppEvent("queryClose");
}.bind(this));
// window.addEventListener("pagehide", function (e) {
// this.fireAppEvent("queryClose");
// }.bind(this));
// window.onbeforeunload = function(e){
// this.fireAppEvent("queryClose");
......
MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
COMMON.AjaxModule.load("JSONTemplate", null, false);
//COMMON.AjaxModule.load("JSONTemplate", null, false);
MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource = new Class({
Extends: MWF.APP$Module,
options: {
......@@ -130,4 +130,4 @@ MWF.xApplication.process.Xform.SubSourceItem = MWF.APPSubSourceItem = new Class
this.loopNodes = [];
this.subSourceItems = [];
}
});
\ No newline at end of file
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册