unknown 5 лет назад
Родитель
Сommit
a425bf68ba
1 измененных файлов с 11 добавлено и 3 удалено
  1. 11 3
      o2web/source/x_desktop/js/base.js

+ 11 - 3
o2web/source/x_desktop/js/base.js

@@ -277,9 +277,17 @@ o2.xDesktop.requireApp = function (module, clazz, callback, async) {
                     return window.open(o2.filterUrl(url), par);
                 }
                 break;
-            // case "cms.Document":
-            //     _openDocument(appNames, options, statusObj);
-            //     break;
+            case "cms.Document":
+                // _openDocument(appNames, options, statusObj);
+                var url = "../x_desktop/cmsdoc.html".toURI();
+                url = url.setData(options).toString();
+                url +=((layout.debugger) ? "&debugger" : "");
+                if (layout.app.$openWithSelf) {
+                    return window.location = o2.filterUrl(url);
+                } else {
+                    return window.open(o2.filterUrl(url), par);
+                }
+                break;
             // case "cms.Module":
             //     _openCms(appNames, options, statusObj);
             //     break;