huqi 5 роки тому
батько
коміт
ebfd57415c
1 змінених файлів з 8 додано та 0 видалено
  1. 8 0
      o2web/source/x_desktop/js/base.js

+ 8 - 0
o2web/source/x_desktop/js/base.js

@@ -233,6 +233,14 @@ o2.xDesktop.requireApp = function (module, clazz, callback, async) {
         }
         }
     };
     };
 
 
+    var _openWindow = function(url, par){
+        var a = new Element("a", {
+            "href": url,
+            "target": par
+        });
+        a.click();
+        a.destroy();
+    };
     var _openApplicationPC = function (appNames, options, statusObj) {
     var _openApplicationPC = function (appNames, options, statusObj) {
         if (options) delete options.docTitle;
         if (options) delete options.docTitle;
         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) : "");