Преглед изворни кода

修正路径转发的一些地址错误

huqi пре 5 година
родитељ
комит
cc1f64770d
1 измењених фајлова са 10 додато и 10 уклоњено
  1. 10 10
      o2web/source/x_desktop/js/base.js

+ 10 - 10
o2web/source/x_desktop/js/base.js

@@ -126,9 +126,9 @@ o2.xDesktop.requireApp = function (module, clazz, callback, async) {
             redirectlink = encodeURIComponent(redirectlink);
             redirectlink = encodeURIComponent(redirectlink);
         }
         }
         if (options.workId) {
         if (options.workId) {
-            window.location = "workmobilewithaction.html?workid=" + options.workId + ((layout.debugger) ? "&debugger" : "") + "&redirectlink=" + redirectlink;
+            window.location = "../x_desktop/workmobilewithaction.html?workid=" + options.workId + ((layout.debugger) ? "&debugger" : "") + "&redirectlink=" + redirectlink;
         } else if (options.workCompletedId) {
         } else if (options.workCompletedId) {
-            window.location = "workmobilewithaction.html?workcompletedid=" + options.workCompletedId + ((layout.debugger) ? "&debugger" : "") + "&redirectlink=" + redirectlink;
+            window.location = "../x_desktop/workmobilewithaction.html?workcompletedid=" + options.workCompletedId + ((layout.debugger) ? "&debugger" : "") + "&redirectlink=" + redirectlink;
         }
         }
     };
     };
     var _openWork = function (options) {
     var _openWork = function (options) {
@@ -143,7 +143,7 @@ o2.xDesktop.requireApp = function (module, clazz, callback, async) {
         } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.openO2CmsDocument) {
         } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.openO2CmsDocument) {
             window.webkit.messageHandlers.openO2CmsDocument.postMessage({ "docId": options.documentId, "docTitle": title });
             window.webkit.messageHandlers.openO2CmsDocument.postMessage({ "docId": options.documentId, "docTitle": title });
         } else {
         } else {
-            window.location = "appMobile.html?" + par + ((layout.debugger) ? "&debugger" : "");
+            window.location = "../x_desktop/appMobile.html?" + par + ((layout.debugger) ? "&debugger" : "");
         }
         }
     };
     };
     var _openCms = function (appNames, options, statusObj) {
     var _openCms = function (appNames, options, statusObj) {
@@ -153,7 +153,7 @@ o2.xDesktop.requireApp = function (module, clazz, callback, async) {
         } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.openO2CmsApplication) {
         } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.openO2CmsApplication) {
             window.webkit.messageHandlers.openO2CmsApplication.postMessage(options.columnId);
             window.webkit.messageHandlers.openO2CmsApplication.postMessage(options.columnId);
         } else {
         } else {
-            window.location = "appMobile.html?" + par + ((layout.debugger) ? "&debugger" : "");
+            window.location = "../x_desktop/appMobile.html?" + par + ((layout.debugger) ? "&debugger" : "");
         }
         }
     };
     };
     var _openMeeting = function (appNames, options, statusObj) {
     var _openMeeting = function (appNames, options, statusObj) {
@@ -163,7 +163,7 @@ o2.xDesktop.requireApp = function (module, clazz, callback, async) {
         } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.openO2Meeting) {
         } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.openO2Meeting) {
             window.webkit.messageHandlers.openO2Meeting.postMessage("");
             window.webkit.messageHandlers.openO2Meeting.postMessage("");
         } else {
         } else {
-            window.location = "appMobile.html?" + par + ((layout.debugger) ? "&debugger" : "");
+            window.location = "../x_desktop/appMobile.html?" + par + ((layout.debugger) ? "&debugger" : "");
         }
         }
     };
     };
 
 
@@ -174,7 +174,7 @@ o2.xDesktop.requireApp = function (module, clazz, callback, async) {
         } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.openO2Calendar) {
         } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.openO2Calendar) {
             window.webkit.messageHandlers.openO2Calendar.postMessage("");
             window.webkit.messageHandlers.openO2Calendar.postMessage("");
         } else {
         } else {
-            window.location = "appMobile.html?" + par + ((layout.debugger) ? "&debugger" : "");
+            window.location = "../x_desktop/appMobile.html?" + par + ((layout.debugger) ? "&debugger" : "");
         }
         }
     };
     };
     var _openTaskCenter = function (appNames, options, statusObj) {
     var _openTaskCenter = function (appNames, options, statusObj) {
@@ -188,7 +188,7 @@ o2.xDesktop.requireApp = function (module, clazz, callback, async) {
         } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.openO2WorkSpace) {
         } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.openO2WorkSpace) {
             window.webkit.messageHandlers.openO2WorkSpace.postMessage(tab);
             window.webkit.messageHandlers.openO2WorkSpace.postMessage(tab);
         } else {
         } else {
-            window.location = "appMobile.html?" + par + ((layout.debugger) ? "&debugger" : "");
+            window.location = "../x_desktop/appMobile.html?" + par + ((layout.debugger) ? "&debugger" : "");
         }
         }
     };
     };
 
 
@@ -216,7 +216,7 @@ o2.xDesktop.requireApp = function (module, clazz, callback, async) {
                 var uri = new URI(window.location.href);
                 var uri = new URI(window.location.href);
                 var optionsStr = uri.getData("option");
                 var optionsStr = uri.getData("option");
                 var statusStr = uri.getData("status");
                 var statusStr = uri.getData("status");
-                window.location = "appMobile.html?app=" + appNames + "&option=" + (optionsStr || "") + "&status=" + (statusStr || "") + ((layout.debugger) ? "&debugger" : "");
+                window.location = "../x_desktop/appMobile.html?app=" + appNames + "&option=" + (optionsStr || "") + "&status=" + (statusStr || "") + ((layout.debugger) ? "&debugger" : "");
         }
         }
     };
     };
 
 
@@ -237,9 +237,9 @@ o2.xDesktop.requireApp = function (module, clazz, callback, async) {
                 var par = "app=" + encodeURIComponent(appNames) + "&status=" + encodeURIComponent((statusObj) ? JSON.encode(statusObj) : "") + "&option=" + encodeURIComponent((options) ? JSON.encode(options) : "");
                 var par = "app=" + encodeURIComponent(appNames) + "&status=" + encodeURIComponent((statusObj) ? JSON.encode(statusObj) : "") + "&option=" + encodeURIComponent((options) ? JSON.encode(options) : "");
 
 
                 if (layout.app.$openWithSelf) {
                 if (layout.app.$openWithSelf) {
-                    return window.location = "app.html?" + par + ((layout.debugger) ? "&debugger" : "");
+                    return window.location = "../x_desktop/app.html?" + par + ((layout.debugger) ? "&debugger" : "");
                 } else {
                 } else {
-                    return window.open("app.html?" + par + ((layout.debugger) ? "&debugger" : ""), par);
+                    return window.open("../x_desktop/app.html?" + par + ((layout.debugger) ? "&debugger" : ""), par);
                 }
                 }
             }
             }
         } else {
         } else {