wfAgentAll_wev8.js
1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
$(function() {
$('.e8_box').Tabs({
staticOnLoad : true,
iframe : "tabcontentframe"
});
jQuery(".e8_box a").bind("click",function(){
_contentDocument = getIframeDoc();
console.dir($(_contentDocument).find("#createdateselect"));
$(_contentDocument).find("#createdateselect").val($(this).attr("name"));
$(_contentDocument).find("#frmmain").submit();
});
flowPageManager.onload();
});
function getIframeDoc(){
return jQuery(".e8_box").Tabs({
method:"getContentDocument"
});
}
function refreshTab(){
var f = window.parent.oTd1.style.display;
if (f != null) {
if(f==''){
window.parent.oTd1.style.display='none';
}else{
window.parent.oTd1.style.display='';
}
}
}
//运行flowPageManager.loadFunctions中的全部函数
var flowPageManager={onload:function(){
var loadFunctions=this.loadFunctions;
for(var xFn in loadFunctions){
var value=loadFunctions[xFn];
loadFunctions[xFn]();
}
},loadFunctions:{}
};
/**
*页面自适应高度
**/
flowPageManager.loadFunctions.autoHeight = function(){
jQuery(".flowsTable").height(jQuery(window).height()-2);
// var tdHeight2=jQuery(".ulDiv").parent().parent().parent().height()-2;
// jQuery("#overFlowDiv").css("height",(tdHeight2-jQuery(".flowMenuAll").height()-1)+"px");
// window.setTimeout(function(){
// jQuery(".ulDiv").css("height",jQuery(".ulDiv").find(".e8menu_ul:eq(0)").height()+10+"px");
// try{
// jQuery('#overFlowDiv').perfectScrollbar("update");
// }catch(e){}
// },200);
// window.setTimeout(function(){
// var screenWidth = top.screen.width;
// if(screenWidth<1280 || window.hideAnyway){
// hideTree();
// }
// },200);
// var tdHeight=0;
// tdHeight = jQuery("#leftmenuTD",top.document).height();
// if(!tdHeight){
// tdHeight = jQuery("#leftBlockTd",top.document).height()-2;
// }
// jQuery(".flowFrame").css("height",tdHeight+"px");
}