Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
bc51574b
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bc51574b
编写于
12月 29, 2018
作者:
H
huqi1980
提交者:
GitHub
12月 29, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #25 from huqi1980/master
upload html load
上级
d4f8b274
89e67af7
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
327 addition
and
151 deletion
+327
-151
o2web/source/o2_core/o2.js
o2web/source/o2_core/o2.js
+230
-100
o2web/source/o2_core/o2/widget/ace.js
o2web/source/o2_core/o2/widget/ace.js
+1
-1
o2web/source/x_component_Common/Main.js
o2web/source/x_component_Common/Main.js
+4
-1
o2web/source/x_component_portal_PageDesigner/Main.js
o2web/source/x_component_portal_PageDesigner/Main.js
+1
-1
o2web/source/x_component_process_FormDesigner/Main.js
o2web/source/x_component_process_FormDesigner/Main.js
+1
-1
o2web/source/x_component_process_FormDesigner/Module/Package.js
...source/x_component_process_FormDesigner/Module/Package.js
+1
-0
o2web/source/x_desktop/cmspreview.html
o2web/source/x_desktop/cmspreview.html
+1
-1
o2web/source/x_desktop/js/app.js
o2web/source/x_desktop/js/app.js
+24
-10
o2web/source/x_desktop/js/appmobile.js
o2web/source/x_desktop/js/appmobile.js
+12
-5
o2web/source/x_desktop/js/cmsDocMobile.js
o2web/source/x_desktop/js/cmsDocMobile.js
+1
-1
o2web/source/x_desktop/js/ddsso.js
o2web/source/x_desktop/js/ddsso.js
+1
-1
o2web/source/x_desktop/js/forum.js
o2web/source/x_desktop/js/forum.js
+1
-1
o2web/source/x_desktop/js/forumDocMobile.js
o2web/source/x_desktop/js/forumDocMobile.js
+1
-1
o2web/source/x_desktop/js/portal.js
o2web/source/x_desktop/js/portal.js
+24
-10
o2web/source/x_desktop/js/portalmobile.js
o2web/source/x_desktop/js/portalmobile.js
+12
-5
o2web/source/x_desktop/js/printWork.js
o2web/source/x_desktop/js/printWork.js
+1
-1
o2web/source/x_desktop/js/weixinsso.js
o2web/source/x_desktop/js/weixinsso.js
+1
-1
o2web/source/x_desktop/js/work.js
o2web/source/x_desktop/js/work.js
+1
-1
o2web/source/x_desktop/js/workmobile.js
o2web/source/x_desktop/js/workmobile.js
+1
-1
o2web/source/x_desktop/js/workmobilewithaction.js
o2web/source/x_desktop/js/workmobilewithaction.js
+1
-1
o2web/source/x_desktop/js/x.js
o2web/source/x_desktop/js/x.js
+3
-3
o2web/source/x_desktop/js/zhengwuDingdingSso.js
o2web/source/x_desktop/js/zhengwuDingdingSso.js
+1
-1
o2web/source/x_desktop/oauth.html
o2web/source/x_desktop/oauth.html
+1
-1
o2web/source/x_desktop/preview.html
o2web/source/x_desktop/preview.html
+1
-1
o2web/source/x_desktop/processViewer.html
o2web/source/x_desktop/processViewer.html
+1
-1
未找到文件。
o2web/source/o2_core/o2.js
浏览文件 @
bc51574b
...
@@ -167,6 +167,96 @@
...
@@ -167,6 +167,96 @@
};
};
this
.
o2
.
runCallback
=
_runCallback
;
this
.
o2
.
runCallback
=
_runCallback
;
var
_getAllOptions
=
function
(
options
){
return
{
"
noCache
"
:
!!
(
options
&&
options
.
nocache
),
"
reload
"
:
!!
(
options
&&
options
.
reload
),
"
sequence
"
:
!!
(
options
&&
options
.
sequence
),
"
doc
"
:
(
options
&&
options
.
doc
)
||
document
,
"
dom
"
:
(
options
&&
options
.
dom
)
||
document
.
body
,
"
position
"
:
"
beforeend
"
//'beforebegin' 'afterbegin' 'beforeend' 'afterend'
}
};
var
_getCssOptions
=
function
(
options
){
return
{
"
noCache
"
:
!!
(
options
&&
options
.
nocache
),
"
reload
"
:
!!
(
options
&&
options
.
reload
),
"
sequence
"
:
!!
(
options
&&
options
.
sequence
),
"
doc
"
:
(
options
&&
options
.
doc
)
||
document
,
"
dom
"
:
(
options
&&
options
.
dom
)
||
null
}
};
var
_getJsOptions
=
function
(
options
){
return
{
"
noCache
"
:
!!
(
options
&&
options
.
nocache
),
"
reload
"
:
!!
(
options
&&
options
.
reload
),
"
sequence
"
:
!!
(
options
&&
options
.
sequence
),
"
doc
"
:
(
options
&&
options
.
doc
)
||
document
}
};
var
_getHtmlOptions
=
function
(
options
){
return
{
"
noCache
"
:
!!
(
options
&&
options
.
nocache
),
"
reload
"
:
!!
(
options
&&
options
.
reload
),
"
sequence
"
:
!!
(
options
&&
options
.
sequence
),
"
doc
"
:
(
options
&&
options
.
doc
)
||
document
,
"
dom
"
:
(
options
&&
options
.
dom
)
||
null
,
"
position
"
:
"
beforeend
"
//'beforebegin' 'afterbegin' 'beforeend' 'afterend'
}
};
var
_xhr_get
=
function
(
url
,
success
,
failure
){
var
xhr
=
new
_request
();
xhr
.
open
(
"
GET
"
,
url
,
true
);
var
_checkCssLoaded
=
function
(
_
,
err
){
if
(
!
(
xhr
.
readyState
==
4
||
err
))
return
;
_removeListener
(
xhr
,
'
readystatechange
'
,
_checkCssLoaded
);
_removeListener
(
xhr
,
'
load
'
,
_checkCssLoaded
);
_removeListener
(
xhr
,
'
error
'
,
_checkCssErrorLoaded
);
if
(
err
)
{
failure
(
xhr
);
return
}
var
status
=
xhr
.
status
;
status
=
(
status
==
1223
)
?
204
:
status
;
if
((
status
>=
200
&&
status
<
300
))
success
(
xhr
);
else
if
((
status
>=
300
&&
status
<
400
))
failure
(
xhr
);
else
failure
(
xhr
);
};
var
_checkCssErrorLoaded
=
function
(
err
){
_checkCssLoaded
(
err
)
};
if
(
"
load
"
in
xhr
)
_addListener
(
xhr
,
"
load
"
,
_checkCssLoaded
);
if
(
"
error
"
in
xhr
)
_addListener
(
xhr
,
"
load
"
,
_checkCssErrorLoaded
);
_addListener
(
xhr
,
"
readystatechange
"
,
_checkCssLoaded
);
xhr
.
send
();
};
var
_loadSequence
=
function
(
ms
,
cb
,
op
,
n
,
thisLoaded
,
loadSingle
,
uuid
,
fun
){
loadSingle
(
ms
[
n
],
function
(
module
){
if
(
module
)
thisLoaded
.
push
(
module
);
n
++
;
if
(
fun
)
fun
(
module
);
if
(
n
===
ms
.
length
){
if
(
cb
)
cb
(
thisLoaded
);
}
else
{
_loadSequence
(
ms
,
cb
,
op
,
n
,
thisLoaded
,
loadSingle
,
uuid
,
fun
);
}
},
op
,
uuid
);
};
var
_loadDisarray
=
function
(
ms
,
cb
,
op
,
thisLoaded
,
loadSingle
,
uuid
,
fun
){
var
count
=
0
;
for
(
var
i
=
0
;
i
<
ms
.
length
;
i
++
){
loadSingle
(
ms
[
i
],
function
(
module
){
if
(
module
)
thisLoaded
.
push
(
module
);
count
++
;
if
(
fun
)
fun
(
module
);
if
(
count
===
ms
.
length
)
if
(
cb
)
cb
(
thisLoaded
);
},
op
,
uuid
);
}
};
//use framework url
//use framework url
var
_frameworks
=
{
var
_frameworks
=
{
"
o2.core
"
:
[
"
/o2_core/o2/o2.core.js
"
],
"
o2.core
"
:
[
"
/o2_core/o2/o2.core.js
"
],
...
@@ -184,97 +274,98 @@
...
@@ -184,97 +274,98 @@
};
};
var
_loaded
=
{};
var
_loaded
=
{};
var
_loadedCss
=
{};
var
_loadedCss
=
{};
var
_loadedHtml
=
{};
var
_loadSingle
=
function
(
url
,
callback
,
reload
){
var
_loadSingle
=
function
(
module
,
callback
,
op
){
var
addr_uri
=
_frameworks
[
url
]
||
url
;
var
url
=
module
;
if
(
!
_debug
)
if
(
addr_uri
.
indexOf
(
"
o2_lib
"
)
===-
1
)
addr_uri
=
addr_uri
.
replace
(
/
\.
js/
,
"
.min.js
"
);
var
uuid
=
_uuid
();
addr_uri
=
(
addr_uri
.
indexOf
(
"
?
"
)
!==-
1
)
?
addr_uri
+
"
&v=
"
+
this
.
o2
.
version
.
v
:
addr_uri
+
"
?v=
"
+
this
.
o2
.
version
.
v
;
if
(
op
.
noCache
)
url
=
(
url
.
indexOf
(
"
?
"
)
!==-
1
)
?
url
+
"
&v=
"
+
uuid
:
addr_uri
+
"
?v=
"
+
uuid
;
var
key
=
encodeURIComponent
(
url
);
var
key
=
encodeURIComponent
(
url
);
if
(
!
op
.
reload
)
if
(
_loaded
[
key
]){
if
(
callback
)
callback
();
return
;
}
if
(
!
reload
)
if
(
_loaded
[
key
]){
if
(
callback
)
callback
();
return
;
}
var
head
=
(
op
.
doc
.
head
||
op
.
doc
.
getElementsByTagName
(
"
head
"
)[
0
]
||
op
.
doc
.
documentElement
);
var
s
=
op
.
doc
.
createElement
(
'
script
'
);
var
head
=
(
document
.
head
||
document
.
getElementsByTagName
(
"
head
"
)[
0
]
||
document
.
documentElement
);
var
s
=
document
.
createElement
(
'
script
'
);
s
.
src
=
addr_uri
;
head
.
appendChild
(
s
);
head
.
appendChild
(
s
);
s
.
id
=
uuid
;
s
.
src
=
url
;
var
_checkScriptLoaded
=
function
(
_
,
isAbort
){
var
_checkScriptLoaded
=
function
(
_
,
isAbort
,
err
){
if
(
isAbort
||
!
s
.
readyState
||
s
.
readyState
===
"
loaded
"
||
s
.
readyState
===
"
complete
"
)
{
if
(
isAbort
||
!
s
.
readyState
||
s
.
readyState
===
"
loaded
"
||
s
.
readyState
===
"
complete
"
)
{
_loaded
[
key
]
=
true
;
var
scriptObj
=
{
"
module
"
:
module
,
"
id
"
:
uuid
,
"
script
"
:
s
,
"
doc
"
:
op
.
doc
}
;
_removeListener
(
s
,
'
DOMContentLoaded
'
,
_checkScriptLoaded
)
;
if
(
!
err
)
_loaded
[
key
]
=
scriptObj
;
_removeListener
(
s
,
'
readystatechange
'
,
_checkScriptLoaded
);
_removeListener
(
s
,
'
readystatechange
'
,
_checkScriptLoaded
);
if
(
!
isAbort
)
if
(
callback
)
callback
();
_removeListener
(
s
,
'
load
'
,
_checkScriptLoaded
);
_removeListener
(
s
,
'
error
'
,
_checkScriptErrorLoaded
);
if
(
!
isAbort
||
err
){
if
(
err
){
if
(
s
)
head
.
removeChild
(
s
);
if
(
callback
)
callback
();
}
else
{
head
.
removeChild
(
s
);
if
(
callback
)
callback
(
scriptObj
);
}
}
}
}
};
};
var
_checkScriptErrorLoaded
=
function
(
e
,
err
){
console
.
log
(
"
Error: load javascript module:
"
+
module
);
_checkScriptLoaded
(
e
,
true
,
"
error
"
);
};
if
(
'
onreadystatechange
'
in
s
)
_addListener
(
s
,
'
readystatechange
'
,
_checkScriptLoaded
);
if
(
'
onreadystatechange
'
in
s
)
_addListener
(
s
,
'
readystatechange
'
,
_checkScriptLoaded
);
_addListener
(
s
,
'
load
'
,
_checkScriptLoaded
);
_addListener
(
s
,
'
load
'
,
_checkScriptLoaded
);
_addListener
(
s
,
'
error
'
,
_checkScriptErrorLoaded
);
};
};
var
_load
=
function
(
urls
,
callback
,
reload
,
doc
){
var
urltype
=
_typeOf
(
urls
);
var
modules
;
if
(
urltype
===
"
array
"
){
modules
=
[];
for
(
var
i
=
0
;
i
<
urls
.
length
;
i
++
){
var
url
=
urls
[
i
];
var
module
=
_frameworks
[
url
]
||
url
;
if
(
_typeOf
(
module
)
===
"
array
"
){
modules
.
concat
(
module
)
}
else
{
modules
.
push
(
url
)
}
}
}
else
{
modules
=
_frameworks
[
urls
]
||
urls
;
}
var
type
=
_typeOf
(
modules
);
var
_load
=
function
(
urls
,
options
,
callback
){
if
(
type
===
"
array
"
){
var
ms
=
(
_typeOf
(
urls
)
===
"
array
"
)
?
urls
:
[
urls
];
var
thisLoaded
=
[];
var
op
=
(
_typeOf
(
options
)
===
"
object
"
)
?
_getJsOptions
(
options
)
:
_getJsOptions
(
null
);
for
(
var
i
=
0
;
i
<
modules
.
length
;
i
++
){
var
cb
=
(
_typeOf
(
options
)
===
"
function
"
)
?
options
:
callback
;
_loadSingle
(
modules
[
i
],
function
(){
thisLoaded
.
push
(
modules
[
i
]);
var
modules
=
[];
if
(
thisLoaded
.
length
===
modules
.
length
){
for
(
var
i
=
0
;
i
<
ms
.
length
;
i
++
){
if
(
callback
)
callback
();
var
url
=
ms
[
i
];
}
var
module
=
_frameworks
[
url
]
||
url
;
},
reload
,
doc
);
if
(
_typeOf
(
module
)
===
"
array
"
){
modules
=
modules
.
concat
(
module
)
}
else
{
modules
.
push
(
module
)
}
}
}
}
if
(
type
===
"
string
"
){
var
thisLoaded
=
[];
_loadSingle
(
modules
,
callback
,
reload
);
if
(
op
.
sequence
){
_loadSequence
(
modules
,
cb
,
op
,
0
,
thisLoaded
,
_loadSingle
);
}
else
{
_loadDisarray
(
modules
,
cb
,
op
,
thisLoaded
,
_loadSingle
);
}
}
};
};
this
.
o2
.
load
=
_load
;
this
.
o2
.
load
=
_load
;
var
_loadSingleCss
=
function
(
url
,
callback
,
uuid
,
reload
,
sourceDoc
){
var
_loadSingleCss
=
function
(
module
,
callback
,
op
,
uuid
){
var
key
=
encodeURIComponent
(
url
);
var
url
=
module
;
if
(
!
reload
)
if
(
_loadedCss
[
key
]){
if
(
callback
)
callback
(
_loadedCss
[
key
]);
return
;
}
var
uid
=
_uuid
();
if
(
op
.
noCache
)
url
=
(
url
.
indexOf
(
"
?
"
)
!==-
1
)
?
url
+
"
&v=
"
+
uid
:
url
+
"
?v=
"
+
uid
;
var
cssurl
=
_frameworks
[
url
]
||
url
;
var
xhr
=
new
_request
(
);
var
key
=
encodeURIComponent
(
url
);
xhr
.
open
(
"
GET
"
,
cssurl
,
true
);
if
(
!
op
.
reload
)
if
(
_loadedCss
[
key
]){
if
(
callback
)
callback
(
_loadedCss
[
key
]);
return
;
}
var
success
=
function
(
xhr
){
var
success
=
function
(
xhr
){
var
cssText
=
xhr
.
responseText
;
var
cssText
=
xhr
.
responseText
;
try
{
try
{
if
(
cssText
){
if
(
cssText
){
if
(
uuid
){
if
(
op
.
dom
){
var
rex
=
new
RegExp
(
"
(.+)(?=
\\
{)
"
,
"
g
"
);
var
rex
=
new
RegExp
(
"
(.+)(?=
\\
{)
"
,
"
g
"
);
var
match
;
var
match
;
while
((
match
=
rex
.
exec
(
cssText
))
!==
null
)
{
while
((
match
=
rex
.
exec
(
cssText
))
!==
null
)
{
var
prefix
=
"
.
"
+
uuid
+
"
"
;
var
prefix
=
"
.
"
+
uuid
+
"
"
;
var
rule
=
prefix
+
match
[
0
];
var
rule
=
prefix
+
match
[
0
];
cssText
=
cssText
.
substring
(
0
,
match
.
index
)
+
rule
+
cssText
.
substring
(
rex
.
lastIndex
,
cssText
.
length
)
cssText
=
cssText
.
substring
(
0
,
match
.
index
)
+
rule
+
cssText
.
substring
(
rex
.
lastIndex
,
cssText
.
length
)
;
rex
.
lastIndex
=
rex
.
lastIndex
+
prefix
.
length
;
rex
.
lastIndex
=
rex
.
lastIndex
+
prefix
.
length
;
}
}
}
}
var
style
=
op
.
doc
.
createElement
(
"
style
"
);
var
doc
=
sourceDoc
||
document
;
var
style
=
doc
.
createElement
(
"
style
"
);
style
.
setAttribute
(
"
type
"
,
"
text/css
"
);
style
.
setAttribute
(
"
type
"
,
"
text/css
"
);
var
head
=
(
document
.
head
||
document
.
getElementsByTagName
(
"
head
"
)[
0
]
||
document
.
documentElement
);
var
head
=
(
op
.
doc
.
head
||
op
.
doc
.
getElementsByTagName
(
"
head
"
)[
0
]
||
op
.
doc
.
documentElement
);
head
.
appendChild
(
style
);
head
.
appendChild
(
style
);
if
(
style
.
styleSheet
){
if
(
style
.
styleSheet
){
var
setFunc
=
function
(){
var
setFunc
=
function
(){
...
@@ -286,41 +377,24 @@
...
@@ -286,41 +377,24 @@
setFunc
();
setFunc
();
}
}
}
else
{
}
else
{
var
cssTextNode
=
doc
.
createTextNode
(
cssText
);
var
cssTextNode
=
op
.
doc
.
createTextNode
(
cssText
);
style
.
appendChild
(
cssTextNode
);
style
.
appendChild
(
cssTextNode
);
}
}
style
.
sheet
.
cssRules
[
0
].
cssText
=
"
#layout_xxx {
\n
"
+
"
width: 500px;
\n
"
+
"
height: 300px;
\n
"
+
"
background: #FFCCBA;
\n
"
+
"
}
"
}
}
_loadedCss
[
key
]
=
style
;
style
.
id
=
uid
;
if
(
callback
)
callback
(
style
);
var
styleObj
=
{
"
module
"
:
module
,
"
id
"
:
uid
,
"
style
"
:
style
,
"
doc
"
:
op
.
doc
};
_loadedCss
[
key
]
=
styleObj
;
if
(
callback
)
callback
(
styleObj
);
}
catch
(
e
){
}
catch
(
e
){
if
(
callback
)
callback
();
if
(
callback
)
callback
();
return
;
return
;
}
}
};
};
var
failure
=
function
(
xhr
){
var
failure
=
function
(
xhr
){
console
.
log
(
"
Error: load css module:
"
+
module
);
if
(
callback
)
callback
();
if
(
callback
)
callback
();
};
};
var
onreadystatechange
=
function
(){
_xhr_get
(
url
,
success
,
failure
);
if
(
xhr
.
readyState
!=
4
)
return
;
var
status
=
xhr
.
status
;
status
=
(
status
==
1223
)
?
204
:
status
;
//var response = {text: xhr.responseText || '', xml: xhr.responseXML};
if
((
status
>=
200
&&
status
<
300
))
success
(
xhr
);
else
if
((
status
>=
300
&&
status
<
400
))
failure
(
xhr
);
else
failure
(
xhr
);
};
_addListener
(
xhr
,
"
readystatechange
"
,
onreadystatechange
);
//xhr.onreadystatechange = onreadystatechange;
xhr
.
send
();
};
};
var
_parseDomString
=
function
(
dom
,
fn
,
sourceDoc
){
var
_parseDomString
=
function
(
dom
,
fn
,
sourceDoc
){
...
@@ -337,32 +411,88 @@
...
@@ -337,32 +411,88 @@
if
(
domType
===
"
element
"
)
_parseDomElement
(
dom
,
fn
);
if
(
domType
===
"
element
"
)
_parseDomElement
(
dom
,
fn
);
if
(
domType
===
"
array
"
)
for
(
var
i
=
0
;
i
<
dom
.
length
;
i
++
)
_parseDom
(
dom
[
i
],
fn
,
sourceDoc
);
if
(
domType
===
"
array
"
)
for
(
var
i
=
0
;
i
<
dom
.
length
;
i
++
)
_parseDom
(
dom
[
i
],
fn
,
sourceDoc
);
};
};
var
_loadCss
=
function
(
urls
,
dom
,
callback
,
reload
,
sourceDoc
){
var
_loadCss
=
function
(
modules
,
options
,
callback
){
var
uuid
=
""
;
var
ms
=
(
_typeOf
(
modules
)
===
"
array
"
)
?
modules
:
[
modules
];
if
(
dom
){
var
op
=
(
_typeOf
(
options
)
===
"
object
"
)
?
_getCssOptions
(
options
)
:
_getCssOptions
(
null
);
uuid
=
"
css
"
+
_uuid
();
var
cb
=
(
_typeOf
(
options
)
===
"
function
"
)
?
options
:
callback
;
_parseDom
(
dom
,
function
(
node
){
node
.
className
+=
((
node
.
className
)
?
"
"
+
uuid
:
uuid
)},
sourceDoc
);
var
uuid
=
"
css
"
+
_uuid
();
if
(
op
.
dom
)
_parseDom
(
op
.
dom
,
function
(
node
){
node
.
className
+=
((
node
.
className
)
?
"
"
+
uuid
:
uuid
)},
op
.
doc
);
var
thisLoaded
=
[];
if
(
op
.
sequence
){
_loadSequence
(
ms
,
cb
,
op
,
0
,
thisLoaded
,
_loadSingleCss
,
uuid
);
}
else
{
_loadDisarray
(
ms
,
cb
,
op
,
thisLoaded
,
_loadSingleCss
,
uuid
);
}
}
modules
=
_frameworks
[
urls
]
||
urls
;
};
var
type
=
_typeOf
(
modules
);
var
_removeCss
=
function
(
module
){
if
(
type
===
"
array
"
){
var
k
=
encodeURIComponent
(
module
);
var
thisLoaded
=
[];
var
removeCss
=
_loadedCss
[
k
];
var
styleList
=
[];
if
(
!
removeCss
)
for
(
key
in
_loadedCss
){
for
(
var
i
=
0
;
i
<
modules
.
length
;
i
++
){
if
(
_loadedCss
[
key
].
id
==
module
){
_loadSingleCss
(
modules
[
i
],
function
(
style
){
removeCss
=
_loadedCss
[
key
];
thisLoaded
.
push
(
modules
[
i
]);
k
=
key
;
if
(
style
)
styleList
.
push
(
styleList
);
break
;
if
(
thisLoaded
.
length
===
modules
.
length
){
if
(
callback
)
callback
(
styleList
);
}
},
uuid
,
reload
,
sourceDoc
);
}
}
}
}
if
(
type
===
"
string
"
){
if
(
removeCss
){
_loadSingleCss
(
modules
,
callback
,
uuid
,
reload
,
sourceDoc
);
delete
_loadedCss
[
k
];
var
styleNode
=
removeCss
.
doc
.
getElementById
(
removeCss
.
id
);
if
(
styleNode
)
styleNode
.
parentNode
.
removeChild
(
styleNode
);
removeCss
=
null
;
}
}
};
};
this
.
o2
.
loadCss
=
_loadCss
;
this
.
o2
.
loadCss
=
_loadCss
;
this
.
o2
.
removeCss
=
_removeCss
;
Element
.
prototype
.
loadCss
=
function
(
modules
,
options
,
callback
){
var
op
=
(
_typeOf
(
options
)
===
"
object
"
)
?
options
:
{};
var
cb
=
(
_typeOf
(
options
)
===
"
function
"
)
?
options
:
callback
;
op
.
dom
=
this
;
_loadCss
(
modules
,
op
,
cb
);
};
_loadSingleHtml
=
function
(
module
,
callback
,
op
){
var
url
=
module
;
var
uid
=
_uuid
();
if
(
op
.
noCache
)
url
=
(
url
.
indexOf
(
"
?
"
)
!==-
1
)
?
url
+
"
&v=
"
+
uid
:
url
+
"
?v=
"
+
uid
;
var
key
=
encodeURIComponent
(
url
);
if
(
!
op
.
reload
)
if
(
_loadedHtml
[
key
]){
if
(
callback
)
callback
(
_loadedHtml
[
key
]);
return
;
}
var
success
=
function
(
xhr
){
var
htmlObj
=
{
"
module
"
:
module
,
"
id
"
:
uid
,
"
data
"
:
xhr
.
responseText
,
"
doc
"
:
op
.
doc
};
_loadedHtml
[
key
]
=
htmlObj
;
if
(
callback
)
callback
(
htmlObj
);
};
var
failure
=
function
(){
console
.
log
(
"
Error: load html module:
"
+
module
);
if
(
callback
)
callback
();
};
_xhr_get
(
url
,
success
,
failure
);
};
var
_injectHtml
=
function
(
op
,
data
){
if
(
op
.
dom
)
_parseDom
(
op
.
dom
,
function
(
node
){
node
.
insertAdjacentHTML
(
op
.
position
,
data
)
},
op
.
doc
);
};
var
_loadHtml
=
function
(
modules
,
options
,
callback
){
var
ms
=
(
_typeOf
(
modules
)
===
"
array
"
)
?
modules
:
[
modules
];
var
op
=
(
_typeOf
(
options
)
===
"
object
"
)
?
_getHtmlOptions
(
options
)
:
_getHtmlOptions
(
null
);
var
cb
=
(
_typeOf
(
options
)
===
"
function
"
)
?
options
:
callback
;
var
thisLoaded
=
[];
if
(
op
.
sequence
){
_loadSequence
(
ms
,
cb
,
op
,
0
,
thisLoaded
,
_loadSingleHtml
,
null
,
function
(
html
){
if
(
html
)
_injectHtml
(
op
,
html
.
data
);
});
}
else
{
_loadDisarray
(
ms
,
cb
,
op
,
thisLoaded
,
_loadSingleHtml
,
null
,
function
(
html
){
if
(
html
)
_injectHtml
(
op
,
html
.
data
);
});
}
};
this
.
o2
.
loadHtml
=
_loadHtml
;
Element
.
prototype
.
loadHtml
=
function
(
modules
,
options
,
callback
){
var
op
=
(
_typeOf
(
options
)
===
"
object
"
)
?
options
:
{};
var
cb
=
(
_typeOf
(
options
)
===
"
function
"
)
?
options
:
callback
;
op
.
dom
=
this
;
_loadHtml
(
modules
,
op
,
cb
);
};
var
_dom
=
{
var
_dom
=
{
ready
:
false
,
ready
:
false
,
...
...
o2web/source/o2_core/o2/widget/ace.js
浏览文件 @
bc51574b
...
@@ -6,7 +6,7 @@ o2.widget.ace = {
...
@@ -6,7 +6,7 @@ o2.widget.ace = {
if
(
!
window
.
ace
){
if
(
!
window
.
ace
){
var
jsLoaded
=
false
;
var
jsLoaded
=
false
;
var
cssLoaded
=
false
;
var
cssLoaded
=
false
;
o2
.
load
(
"
ace
"
,
function
(){
o2
.
load
(
"
ace
"
,
{
"
sequence
"
:
true
},
function
(){
//COMMON.AjaxModule.loadDom("ace-tools", function(){
//COMMON.AjaxModule.loadDom("ace-tools", function(){
if
(
callback
)
callback
();
if
(
callback
)
callback
();
//}.bind(this))
//}.bind(this))
...
...
o2web/source/x_component_Common/Main.js
浏览文件 @
bc51574b
...
@@ -245,7 +245,10 @@ MWF.xApplication.Common.Main = new Class({
...
@@ -245,7 +245,10 @@ MWF.xApplication.Common.Main = new Class({
openInNewBrowser
:
function
(){
openInNewBrowser
:
function
(){
this
.
desktop
.
openBrowserApp
=
this
.
options
.
name
;
this
.
desktop
.
openBrowserApp
=
this
.
options
.
name
;
this
.
desktop
.
openBrowserStatus
=
(
this
.
recordStatus
)
?
this
.
recordStatus
()
:
null
;
this
.
desktop
.
openBrowserStatus
=
(
this
.
recordStatus
)
?
this
.
recordStatus
()
:
null
;
window
.
open
(
"
app.html
"
,
"
_blank
"
);
var
status
=
(
this
.
desktop
.
openBrowserStatus
)
?
JSON
.
encode
(
this
.
desktop
.
openBrowserStatus
)
:
""
;
var
url
=
"
app.html?app=
"
+
this
.
options
.
name
+
"
&status=
"
+
status
;
window
.
open
(
url
,
"
_blank
"
);
if
(
!
this
.
inBrowser
)
this
.
close
();
if
(
!
this
.
inBrowser
)
this
.
close
();
},
},
openInNewWindow
:
function
(){
openInNewWindow
:
function
(){
...
...
o2web/source/x_component_portal_PageDesigner/Main.js
浏览文件 @
bc51574b
...
@@ -1324,7 +1324,7 @@ MWF.xApplication.portal.PageDesigner.Main = new Class({
...
@@ -1324,7 +1324,7 @@ MWF.xApplication.portal.PageDesigner.Main = new Class({
this
.
setTitle
(
this
.
options
.
appTitle
+
"
-
"
+
this
.
pageData
.
json
.
name
);
this
.
setTitle
(
this
.
options
.
appTitle
+
"
-
"
+
this
.
pageData
.
json
.
name
);
this
.
taskitem
.
setText
(
this
.
options
.
appTitle
+
"
-
"
+
this
.
pageData
.
json
.
name
);
if
(
this
.
taskitem
)
this
.
taskitem
.
setText
(
this
.
options
.
appTitle
+
"
-
"
+
this
.
pageData
.
json
.
name
);
this
.
options
.
appTitle
=
this
.
options
.
appTitle
+
"
-
"
+
this
.
pageData
.
json
.
name
;
this
.
options
.
appTitle
=
this
.
options
.
appTitle
+
"
-
"
+
this
.
pageData
.
json
.
name
;
if
(
!
this
.
application
){
if
(
!
this
.
application
){
...
...
o2web/source/x_component_process_FormDesigner/Main.js
浏览文件 @
bc51574b
...
@@ -1297,7 +1297,7 @@ MWF.xApplication.process.FormDesigner.Main = new Class({
...
@@ -1297,7 +1297,7 @@ MWF.xApplication.process.FormDesigner.Main = new Class({
this
.
setTitle
(
this
.
options
.
appTitle
+
"
-
"
+
this
.
formData
.
json
.
name
);
this
.
setTitle
(
this
.
options
.
appTitle
+
"
-
"
+
this
.
formData
.
json
.
name
);
this
.
taskitem
.
setText
(
this
.
options
.
appTitle
+
"
-
"
+
this
.
formData
.
json
.
name
);
if
(
this
.
taskitem
)
this
.
taskitem
.
setText
(
this
.
options
.
appTitle
+
"
-
"
+
this
.
formData
.
json
.
name
);
this
.
options
.
appTitle
=
this
.
options
.
appTitle
+
"
-
"
+
this
.
formData
.
json
.
name
;
this
.
options
.
appTitle
=
this
.
options
.
appTitle
+
"
-
"
+
this
.
formData
.
json
.
name
;
if
(
!
this
.
application
){
if
(
!
this
.
application
){
...
...
o2web/source/x_component_process_FormDesigner/Module/Package.js
浏览文件 @
bc51574b
MWF
.
xApplication
.
process
=
MWF
.
xApplication
.
process
||
{};
MWF
.
APPFD
=
MWF
.
xApplication
.
process
.
FormDesigner
=
MWF
.
xApplication
.
process
.
FormDesigner
||
{};
MWF
.
APPFD
=
MWF
.
xApplication
.
process
.
FormDesigner
=
MWF
.
xApplication
.
process
.
FormDesigner
||
{};
MWF
.
xApplication
.
process
.
FormDesigner
.
Module
=
MWF
.
xApplication
.
process
.
FormDesigner
.
Module
||
{};
MWF
.
xApplication
.
process
.
FormDesigner
.
Module
=
MWF
.
xApplication
.
process
.
FormDesigner
.
Module
||
{};
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
lp.
"
+
MWF
.
language
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
lp.
"
+
MWF
.
language
,
null
,
false
);
...
...
o2web/source/x_desktop/cmspreview.html
浏览文件 @
bc51574b
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
}
}
//layout.desktop = layout;
//layout.desktop = layout;
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
require
(
"
MWF.xDesktop.Layout
"
,
function
(){
MWF
.
require
(
"
MWF.xDesktop.Layout
"
,
function
(){
...
...
o2web/source/x_desktop/js/app.js
浏览文件 @
bc51574b
...
@@ -14,7 +14,7 @@ o2.addReady(function(){
...
@@ -14,7 +14,7 @@ o2.addReady(function(){
var
options
=
(
optionsStr
)
?
JSON
.
decode
(
optionsStr
)
:
null
;
var
options
=
(
optionsStr
)
?
JSON
.
decode
(
optionsStr
)
:
null
;
var
statusObj
=
(
statusStr
)
?
JSON
.
decode
(
statusStr
)
:
null
;
var
statusObj
=
(
statusStr
)
?
JSON
.
decode
(
statusStr
)
:
null
;
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
@@ -66,11 +66,18 @@ o2.addReady(function(){
...
@@ -66,11 +66,18 @@ o2.addReady(function(){
var
topWindow
=
window
.
opener
;
var
topWindow
=
window
.
opener
;
if
(
topWindow
){
if
(
topWindow
){
topWindow
.
layout
.
desktop
.
openBrowserStatus
=
status
;
try
{
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
topWindow
.
layout
.
desktop
.
openBrowserStatus
=
status
;
var
m_status
=
status
;
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
var
m_status
=
status
;
window
.
location
.
reload
();
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
window
.
location
.
reload
();
}
catch
(
e
){
statusStr
=
JSON
.
encode
(
status
);
var
port
=
uri
.
get
(
"
port
"
);
var
url
=
uri
.
get
(
"
scheme
"
)
+
"
://
"
+
uri
.
get
(
"
host
"
)
+
((
port
)
?
"
:
"
+
port
+
"
/
"
:
""
)
+
uri
.
get
(
"
directory
"
)
+
"
?app=
"
+
appNames
+
"
&status=
"
+
statusStr
;
window
.
location
=
url
;
}
}
else
{
}
else
{
statusStr
=
JSON
.
encode
(
status
);
statusStr
=
JSON
.
encode
(
status
);
var
port
=
uri
.
get
(
"
port
"
);
var
port
=
uri
.
get
(
"
port
"
);
...
@@ -122,10 +129,17 @@ o2.addReady(function(){
...
@@ -122,10 +129,17 @@ o2.addReady(function(){
this
.
node
=
$
(
"
layout
"
);
this
.
node
=
$
(
"
layout
"
);
var
topWindow
=
window
.
opener
;
var
topWindow
=
window
.
opener
;
if
(
topWindow
){
if
(
topWindow
){
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
try
{
var
m_status
=
topWindow
.
layout
.
desktop
.
openBrowserStatus
||
statusObj
;
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
var
m_status
=
topWindow
.
layout
.
desktop
.
openBrowserStatus
||
statusObj
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
}
catch
(
e
){
var
appName
=
appNames
;
var
m_status
=
statusObj
;
var
option
=
options
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
}
//topWindow.layout.desktop.openBrowserApp = null;
//topWindow.layout.desktop.openBrowserApp = null;
//topWindow.layout.desktop.openBrowserStatus = null;
//topWindow.layout.desktop.openBrowserStatus = null;
//topWindow.layout.desktop.openBrowserOption = null;
//topWindow.layout.desktop.openBrowserOption = null;
...
...
o2web/source/x_desktop/js/appmobile.js
浏览文件 @
bc51574b
...
@@ -17,7 +17,7 @@ o2.addReady(function(){
...
@@ -17,7 +17,7 @@ o2.addReady(function(){
var
options
=
(
optionsStr
)
?
JSON
.
decode
(
optionsStr
)
:
null
;
var
options
=
(
optionsStr
)
?
JSON
.
decode
(
optionsStr
)
:
null
;
var
statusObj
=
(
statusStr
)
?
JSON
.
decode
(
statusStr
)
:
null
;
var
statusObj
=
(
statusStr
)
?
JSON
.
decode
(
statusStr
)
:
null
;
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
@@ -206,11 +206,18 @@ o2.addReady(function(){
...
@@ -206,11 +206,18 @@ o2.addReady(function(){
this
.
node
=
$
(
"
layout
"
);
this
.
node
=
$
(
"
layout
"
);
var
topWindow
=
window
.
opener
;
var
topWindow
=
window
.
opener
;
if
(
topWindow
){
if
(
topWindow
){
try
{
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
var
m_status
=
topWindow
.
layout
.
desktop
.
openBrowserStatus
||
statusObj
;
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
}
catch
(
e
){
var
appName
=
appNames
;
var
m_status
=
statusObj
;
var
option
=
options
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
}
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
var
m_status
=
topWindow
.
layout
.
desktop
.
openBrowserStatus
||
statusObj
;
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
//topWindow.layout.desktop.openBrowserApp = null;
//topWindow.layout.desktop.openBrowserApp = null;
//topWindow.layout.desktop.openBrowserStatus = null;
//topWindow.layout.desktop.openBrowserStatus = null;
//topWindow.layout.desktop.openBrowserOption = null;
//topWindow.layout.desktop.openBrowserOption = null;
...
...
o2web/source/x_desktop/js/cmsDocMobile.js
浏览文件 @
bc51574b
...
@@ -7,7 +7,7 @@ layout.session = layout.session || {};
...
@@ -7,7 +7,7 @@ layout.session = layout.session || {};
var
href
=
locate
.
href
;
var
href
=
locate
.
href
;
if
(
href
.
indexOf
(
"
debugger
"
)
!=-
1
)
layout
.
debugger
=
true
;
if
(
href
.
indexOf
(
"
debugger
"
)
!=-
1
)
layout
.
debugger
=
true
;
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
...
o2web/source/x_desktop/js/ddsso.js
浏览文件 @
bc51574b
...
@@ -6,7 +6,7 @@ if (href.indexOf("debugger")!==-1) layout.debugger = true;
...
@@ -6,7 +6,7 @@ if (href.indexOf("debugger")!==-1) layout.debugger = true;
layout
.
desktop
=
layout
;
layout
.
desktop
=
layout
;
layout
.
session
=
layout
.
session
||
{};
layout
.
session
=
layout
.
session
||
{};
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
...
o2web/source/x_desktop/js/forum.js
浏览文件 @
bc51574b
...
@@ -6,7 +6,7 @@ var href = locate.href;
...
@@ -6,7 +6,7 @@ var href = locate.href;
layout
.
session
=
layout
.
session
||
{};
layout
.
session
=
layout
.
session
||
{};
if
(
href
.
indexOf
(
"
debugger
"
)
!=-
1
)
layout
.
debugger
=
true
;
if
(
href
.
indexOf
(
"
debugger
"
)
!=-
1
)
layout
.
debugger
=
true
;
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
...
o2web/source/x_desktop/js/forumDocMobile.js
浏览文件 @
bc51574b
...
@@ -7,7 +7,7 @@ var href = locate.href;
...
@@ -7,7 +7,7 @@ var href = locate.href;
layout
.
session
=
layout
.
session
||
{};
layout
.
session
=
layout
.
session
||
{};
if
(
href
.
indexOf
(
"
debugger
"
)
!=-
1
)
layout
.
debugger
=
true
;
if
(
href
.
indexOf
(
"
debugger
"
)
!=-
1
)
layout
.
debugger
=
true
;
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
...
o2web/source/x_desktop/js/portal.js
浏览文件 @
bc51574b
...
@@ -21,7 +21,7 @@ o2.addReady(function(){
...
@@ -21,7 +21,7 @@ o2.addReady(function(){
// COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
// COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
// COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
// COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
//COMMON.AjaxModule.load("mwf", function(){
//COMMON.AjaxModule.load("mwf", function(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
@@ -105,11 +105,18 @@ o2.addReady(function(){
...
@@ -105,11 +105,18 @@ o2.addReady(function(){
var
topWindow
=
window
.
opener
;
var
topWindow
=
window
.
opener
;
if
(
topWindow
){
if
(
topWindow
){
topWindow
.
layout
.
desktop
.
openBrowserStatus
=
status
;
try
{
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
topWindow
.
layout
.
desktop
.
openBrowserStatus
=
status
;
var
m_status
=
status
;
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
var
m_status
=
status
;
window
.
location
.
reload
();
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
window
.
location
.
reload
();
}
catch
(
e
){
statusStr
=
encodeURIComponent
(
JSON
.
encode
(
status
));
var
port
=
uri
.
get
(
"
port
"
);
var
url
=
uri
.
get
(
"
scheme
"
)
+
"
://
"
+
uri
.
get
(
"
host
"
)
+
((
port
)
?
"
:
"
+
port
+
""
:
""
)
+
uri
.
get
(
"
directory
"
)
+
uri
.
get
(
"
file
"
)
+
"
?app=
"
+
appNames
+
"
&status=
"
+
statusStr
;
window
.
location
=
url
;
}
}
else
{
}
else
{
statusStr
=
encodeURIComponent
(
JSON
.
encode
(
status
));
statusStr
=
encodeURIComponent
(
JSON
.
encode
(
status
));
var
port
=
uri
.
get
(
"
port
"
);
var
port
=
uri
.
get
(
"
port
"
);
...
@@ -126,11 +133,18 @@ o2.addReady(function(){
...
@@ -126,11 +133,18 @@ o2.addReady(function(){
this
.
node
=
$
(
"
layout
"
);
this
.
node
=
$
(
"
layout
"
);
var
topWindow
=
window
.
opener
;
var
topWindow
=
window
.
opener
;
if
(
topWindow
){
if
(
topWindow
){
try
{
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
var
m_status
=
topWindow
.
layout
.
desktop
.
openBrowserStatus
||
statusObj
;
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
}
catch
(
e
){
var
appName
=
appNames
;
var
m_status
=
statusObj
;
var
option
=
options
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
}
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
var
m_status
=
topWindow
.
layout
.
desktop
.
openBrowserStatus
||
statusObj
;
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
//topWindow.layout.desktop.openBrowserApp = null;
//topWindow.layout.desktop.openBrowserApp = null;
//topWindow.layout.desktop.openBrowserStatus = null;
//topWindow.layout.desktop.openBrowserStatus = null;
//topWindow.layout.desktop.openBrowserOption = null;
//topWindow.layout.desktop.openBrowserOption = null;
...
...
o2web/source/x_desktop/js/portalmobile.js
浏览文件 @
bc51574b
...
@@ -17,7 +17,7 @@ o2.addReady(function(){
...
@@ -17,7 +17,7 @@ o2.addReady(function(){
var
statusObj
=
{
"
portalId
"
:
id
,
"
pageId
"
:
page
};
var
statusObj
=
{
"
portalId
"
:
id
,
"
pageId
"
:
page
};
var
options
=
null
;
var
options
=
null
;
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
@@ -206,11 +206,18 @@ o2.addReady(function(){
...
@@ -206,11 +206,18 @@ o2.addReady(function(){
this
.
node
=
$
(
"
layout
"
);
this
.
node
=
$
(
"
layout
"
);
var
topWindow
=
window
.
opener
;
var
topWindow
=
window
.
opener
;
if
(
topWindow
){
if
(
topWindow
){
try
{
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
var
m_status
=
topWindow
.
layout
.
desktop
.
openBrowserStatus
||
statusObj
;
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
}
catch
(
e
){
var
appName
=
appNames
;
var
m_status
=
statusObj
;
var
option
=
options
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
}
var
appName
=
topWindow
.
layout
.
desktop
.
openBrowserApp
||
appNames
;
var
m_status
=
topWindow
.
layout
.
desktop
.
openBrowserStatus
||
statusObj
;
var
option
=
topWindow
.
layout
.
desktop
.
openBrowserOption
||
options
;
layout
.
openApplication
(
null
,
appName
,
option
||
{},
m_status
);
//topWindow.layout.desktop.openBrowserApp = null;
//topWindow.layout.desktop.openBrowserApp = null;
//topWindow.layout.desktop.openBrowserStatus = null;
//topWindow.layout.desktop.openBrowserStatus = null;
//topWindow.layout.desktop.openBrowserOption = null;
//topWindow.layout.desktop.openBrowserOption = null;
...
...
o2web/source/x_desktop/js/printWork.js
浏览文件 @
bc51574b
...
@@ -6,7 +6,7 @@ if (href.indexOf("debugger")!=-1) layout.debugger = true;
...
@@ -6,7 +6,7 @@ if (href.indexOf("debugger")!=-1) layout.debugger = true;
layout
.
desktop
=
layout
;
layout
.
desktop
=
layout
;
layout
.
session
=
layout
.
session
||
{};
layout
.
session
=
layout
.
session
||
{};
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
...
o2web/source/x_desktop/js/weixinsso.js
浏览文件 @
bc51574b
...
@@ -6,7 +6,7 @@ if (href.indexOf("debugger")!=-1) layout.debugger = true;
...
@@ -6,7 +6,7 @@ if (href.indexOf("debugger")!=-1) layout.debugger = true;
layout
.
desktop
=
layout
;
layout
.
desktop
=
layout
;
layout
.
session
=
layout
.
session
||
{};
layout
.
session
=
layout
.
session
||
{};
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
...
o2web/source/x_desktop/js/work.js
浏览文件 @
bc51574b
...
@@ -9,7 +9,7 @@ layout.desktop = layout;
...
@@ -9,7 +9,7 @@ layout.desktop = layout;
var
parentWindow
=
window
.
opener
;
var
parentWindow
=
window
.
opener
;
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
...
o2web/source/x_desktop/js/workmobile.js
浏览文件 @
bc51574b
...
@@ -8,7 +8,7 @@ layout.mobile = true;
...
@@ -8,7 +8,7 @@ layout.mobile = true;
layout
.
desktop
=
layout
;
layout
.
desktop
=
layout
;
layout
.
desktop
.
session
=
{};
layout
.
desktop
.
session
=
{};
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
...
o2web/source/x_desktop/js/workmobilewithaction.js
浏览文件 @
bc51574b
...
@@ -8,7 +8,7 @@ layout.desktop = layout;
...
@@ -8,7 +8,7 @@ layout.desktop = layout;
layout
.
desktop
.
session
=
{};
layout
.
desktop
.
session
=
{};
layout
.
session
=
layout
.
session
||
{};
layout
.
session
=
layout
.
session
||
{};
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
...
o2web/source/x_desktop/js/x.js
浏览文件 @
bc51574b
...
@@ -26,8 +26,8 @@ o2.addReady(function(){
...
@@ -26,8 +26,8 @@ o2.addReady(function(){
//COMMON.setContentPath("/x_desktop");
//COMMON.setContentPath("/x_desktop");
//COMMON.AjaxModule.load("ie_adapter", function(){
//COMMON.AjaxModule.load("ie_adapter", function(){
o2
.
load
(
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
function
(){
o2
.
load
(
[
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
}
,
function
(){
o2
.
load
(
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
,
function
(){
//
o2.load("../o2_lib/mootools/plugin/mBox.Tooltip.js", function(){
//o2.load("mwf", function(){
//o2.load("mwf", function(){
o2
.
JSON
.
get
(
"
res/config/config.json
"
,
function
(
config
){
o2
.
JSON
.
get
(
"
res/config/config.json
"
,
function
(
config
){
...
@@ -65,7 +65,7 @@ o2.addReady(function(){
...
@@ -65,7 +65,7 @@ o2.addReady(function(){
},
false
);
},
false
);
//});
//});
});
//
});
});
});
//});
//});
});
});
...
...
o2web/source/x_desktop/js/zhengwuDingdingSso.js
浏览文件 @
bc51574b
...
@@ -17,7 +17,7 @@ o2.addReady(function(){
...
@@ -17,7 +17,7 @@ o2.addReady(function(){
var
options
=
(
optionsStr
)
?
JSON
.
decode
(
optionsStr
)
:
null
;
var
options
=
(
optionsStr
)
?
JSON
.
decode
(
optionsStr
)
:
null
;
var
statusObj
=
(
statusStr
)
?
JSON
.
decode
(
statusStr
)
:
null
;
var
statusObj
=
(
statusStr
)
?
JSON
.
decode
(
statusStr
)
:
null
;
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
...
...
o2web/source/x_desktop/oauth.html
浏览文件 @
bc51574b
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
MWF
.
require
(
"
MWF.xDesktop.Common
"
,
null
,
false
);
MWF
.
require
(
"
MWF.xDesktop.Common
"
,
null
,
false
);
MWF
.
require
(
"
MWF.xAction.RestActions
"
,
null
,
false
);
MWF
.
require
(
"
MWF.xAction.RestActions
"
,
null
,
false
);
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
o2
.
JSON
.
get
(
"
res/config/config.json
"
,
function
(
config
)
{
o2
.
JSON
.
get
(
"
res/config/config.json
"
,
function
(
config
)
{
layout
.
config
=
config
;
layout
.
config
=
config
;
MWF
.
xDesktop
.
getServiceAddress
(
config
,
function
(
service
,
center
)
{
MWF
.
xDesktop
.
getServiceAddress
(
config
,
function
(
service
,
center
)
{
...
...
o2web/source/x_desktop/preview.html
浏览文件 @
bc51574b
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
layout
.
session
=
window
.
frameElement
.
ownerDocument
.
window
.
layout
.
session
||
{};
layout
.
session
=
window
.
frameElement
.
ownerDocument
.
window
.
layout
.
session
||
{};
//layout.desktop = layout;
//layout.desktop = layout;
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
getJSON
(
"
res/config/config.json
"
,
function
(
config
){
MWF
.
getJSON
(
"
res/config/config.json
"
,
function
(
config
){
layout
.
config
=
config
;
layout
.
config
=
config
;
if
(
layout
.
config
.
app_protocol
==
"
auto
"
){
if
(
layout
.
config
.
app_protocol
==
"
auto
"
){
...
...
o2web/source/x_desktop/processViewer.html
浏览文件 @
bc51574b
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<script>
<script>
layout
=
window
.
layout
||
{};
layout
=
window
.
layout
||
{};
o2
.
addReady
(
function
(){
o2
.
addReady
(
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
function
(){
o2
.
load
([
"
../o2_lib/mootools/plugin/mBox.Notice.js
"
,
"
../o2_lib/mootools/plugin/mBox.Tooltip.js
"
],
{
"
sequence
"
:
true
},
function
(){
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
defaultPath
=
"
/x_desktop
"
+
MWF
.
defaultPath
;
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
loadLP
(
"
zh-cn
"
);
MWF
.
require
(
"
MWF.xDesktop.Layout
"
,
function
(){
MWF
.
require
(
"
MWF.xDesktop.Layout
"
,
function
(){
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录