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