Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦中观雨
cat
提交
8d76da0c
C
cat
项目概览
梦中观雨
/
cat
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
cat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8d76da0c
编写于
3月 27, 2012
作者:
Y
You Yong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify the js
上级
677f0745
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
51 addition
and
32 deletion
+51
-32
cat-home/src/main/webapp/css/problem.css
cat-home/src/main/webapp/css/problem.css
+30
-2
cat-home/src/main/webapp/js/problem.js
cat-home/src/main/webapp/js/problem.js
+19
-28
cat-home/src/main/webapp/jsp/report/problemDetail.jsp
cat-home/src/main/webapp/jsp/report/problemDetail.jsp
+2
-2
未找到文件。
cat-home/src/main/webapp/css/problem.css
浏览文件 @
8d76da0c
.problem
{
font-size
:
small
;
border-spacing
:
1px
;
border-spacing
:
1px
;
}
.machines
{
...
...
@@ -33,6 +33,34 @@ a.long-url {
background-color
:
blue
;
}
.minute
{
.minute
{
}
.detail
{
font-size
:
small
;
border-spacing
:
1px
;
}
#msgObjRef
{
position
:
absolute
;
text-align
:
center
;
border
:
1px
solid
;
border-color
:
#666699
;
background-color
:
#FFFFFF
;
line-height
:
22px
;
z-index
:
102
;
}
#titleBar
{
text-align
:
left
;
color
:
#FFFFFF
;
cursor
:
move
;
background-color
:
#06C
;
}
#closeBtn
{
width
:
10px
;
cursor
:
pointer
;
background-color
:
#06C
;
}
\ No newline at end of file
cat-home/src/main/webapp/js/problem.js
浏览文件 @
8d76da0c
...
...
@@ -30,53 +30,44 @@ function show(anchor) {
type
:
"
get
"
,
url
:
anchor
.
href
,
success
:
function
(
data
,
textStatus
)
{
alertWin
(
"
Problem Detail
"
,
data
,
500
,
250
)
alertWin
(
"
Problem Detail
"
,
data
);
}
});
}
function
alertWin
(
title
,
msg
,
w
,
h
)
{
$
(
document
).
keypress
(
function
(
e
)
{
if
(
e
.
which
==
113
)
{
var
lastMsgObj
=
document
.
getElementById
(
"
msgObjRef
"
);
if
(
lastMsgObj
!=
null
)
{
document
.
body
.
removeChild
(
lastMsgObj
);
}
}
});
function
alertWin
(
title
,
msg
)
{
var
lastMsgObj
=
document
.
getElementById
(
"
msgObjRef
"
);
if
(
lastMsgObj
!=
null
)
{
document
.
body
.
removeChild
(
lastMsgObj
);
}
var
titleheight
=
"
22px
"
;
var
bordercolor
=
"
#666699
"
;
var
titlecolor
=
"
#FFFFFF
"
;
var
titlebgcolor
=
"
#06C
"
;
var
bgcolor
=
"
#FFFFFF
"
;
var
w
=
500
;
// default width
var
h
=
250
;
// defaylt hight
var
iWidth
=
document
.
documentElement
.
clientWidth
;
var
iHeight
=
document
.
documentElement
.
clientHeight
;
if
(
iHeight
<
600
)
iHeight
=
600
;
if
(
iWidth
<
1000
)
iWidth
=
1000
;
var
top_
=
1
6
0
+
document
.
documentElement
.
scrollTop
var
top_
=
1
5
0
+
document
.
documentElement
.
scrollTop
+
document
.
body
.
scrollTop
;
/*
* if (iHeight > h) top_ = (iHeight - h) / 2 - 50 + document.body.scrollTop +
* document.documentElement.scrollTop-50;
*/
var
left_
=
500
+
document
.
documentElement
.
scrollLeft
+
document
.
body
.
scrollLeft
;
var
msgObj
=
document
.
createElement
(
"
div
"
);
msgObj
.
setAttribute
(
"
id
"
,
"
msgObjRef
"
);
msgObj
.
style
.
cssText
=
"
position:absolute;top:
"
+
top_
+
"
px;left:400
"
+
"
px;width:auto;height:auto;text-align:center;border:1px solid
"
+
bordercolor
+
"
;background-color:
"
+
bgcolor
+
"
;padding:1px;line-height:22px;z-index:102;
"
;
msgObj
.
style
.
cssText
=
"
top:
"
+
top_
+
"
px;left:
"
+
left_
+
"
px
"
;
document
.
body
.
appendChild
(
msgObj
);
var
table
=
document
.
createElement
(
"
table
"
);
msgObj
.
appendChild
(
table
);
table
.
style
.
cssText
=
"
margin:0px;border:0px;padding:0px;
"
;
table
.
cellSpacing
=
0
;
var
tr
=
table
.
insertRow
(
-
1
);
var
titleBar
=
tr
.
insertCell
(
-
1
);
// var titlewid = w - 20;
// titlewidth = titlewid + 'px';
titleBar
.
style
.
cssText
=
"
height:
"
+
titleheight
+
"
px;text-align:left;padding:3px;margin:0px;color:
"
+
titlecolor
+
"
;border:1px solid
"
+
bordercolor
+
"
;cursor:move;background-color:
"
+
titlebgcolor
;
// titleBar.style.paddingLeft = "10px";
titleBar
.
setAttribute
(
"
id
"
,
"
titleBar
"
);
titleBar
.
innerHTML
=
title
;
var
moveX
=
0
;
var
moveY
=
0
;
...
...
@@ -117,8 +108,8 @@ function alertWin(title, msg, w, h) {
};
};
var
closeBtn
=
tr
.
insertCell
(
-
1
);
closeBtn
.
s
tyle
.
cssText
=
"
cursor:pointer;background-color:
"
+
titlebgcolor
;
closeBtn
.
innerHTML
=
"
<span color:
"
+
titlecolor
+
"
;'>×</span>
"
;
closeBtn
.
s
etAttribute
(
"
id
"
,
"
closeBtn
"
)
;
closeBtn
.
innerHTML
=
"
×
"
;
closeBtn
.
onclick
=
function
()
{
document
.
body
.
removeChild
(
msgObj
);
};
...
...
cat-home/src/main/webapp/jsp/report/problemDetail.jsp
浏览文件 @
8d76da0c
...
...
@@ -40,8 +40,8 @@
<th
width=
"10%"
>
Count
</th>
<th
width=
"70%"
>
SampLinks
</th>
</tr>
<c:forEach
var=
"status"
items=
"
${
statistics
.
value
.
status
}
"
>
<tr>
<c:forEach
var=
"status"
items=
"
${
statistics
.
value
.
status
}
"
varStatus=
"index"
>
<tr
class=
"${index.index mod 2==1 ? 'even' : 'odd'}"
>
<td>
${status.value.status}
</td>
<td>
${status.value.count}
</td>
<td><c:forEach
var=
"links"
items=
"
${
status
.
value
.
links
}
"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录