huqi пре 5 година
родитељ
комит
818500a276

+ 12 - 1
o2web/source/o2_core/o2.js

@@ -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
     ];

+ 3 - 3
o2web/source/x_component_Common/Main.js

@@ -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");

+ 2 - 2
o2web/source/x_component_process_Xform/SubSource.js

@@ -1,5 +1,5 @@
 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 = [];
     }
-});
+});