Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
a2a398ed
J
jenkins
项目概览
xxadev
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a2a398ed
编写于
11月 29, 2012
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
merge the tooltip to the context menu
上级
e7f56d3d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
30 addition
and
3 deletion
+30
-3
changelog.html
changelog.html
+3
-1
core/src/main/resources/lib/hudson/queue.jelly
core/src/main/resources/lib/hudson/queue.jelly
+2
-2
core/src/main/resources/lib/layout/breadcrumbs.js
core/src/main/resources/lib/layout/breadcrumbs.js
+12
-0
war/src/main/webapp/css/style.css
war/src/main/webapp/css/style.css
+11
-0
war/src/main/webapp/scripts/hudson-behavior.js
war/src/main/webapp/scripts/hudson-behavior.js
+2
-0
未找到文件。
changelog.html
浏览文件 @
a2a398ed
...
...
@@ -66,9 +66,11 @@ Upcoming changes</a>
<li
class=
bug
>
WARNING: Caught exception evaluating: descriptor.getHelpFile(attrs.field). Reason: java.lang.NullPointerException.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-15940"
>
issue 15940
</a>
)
<li
class=
rfe
>
<li
class=
rfe
>
Allows to disable triggering of downstream jobs (for a maven job)
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-1295"
>
issue 1295
</a>
)
<li
class=
bug
>
Context menu and tooltip of the queue items were colliding with each other
</ul>
</div>
<!--=TRUNK-END=-->
...
...
core/src/main/resources/lib/hudson/queue.jelly
浏览文件 @
a2a398ed
...
...
@@ -58,11 +58,11 @@ THE SOFTWARE.
<j:otherwise>
<j:forEach var="item" items="${items}">
<tr>
<td class="pane" width="100%"
tooltip="${item.why}${h.escape(item.params)}<br>${%WaitingFor(item.inQueueForString)}"
style="white-space: normal;">
<td class="pane" width="100%" style="white-space: normal;">
<j:set var="stuck" value="${item.isStuck()}"/>
<j:choose>
<j:when test="${h.hasPermission(item.task,item.task.READ)}">
<a href="${rootURL}/${item.task.url}" class="model-link">
<a href="${rootURL}/${item.task.url}" class="model-link
tl-tr" tooltip="${item.why}${h.escape(item.params)}<br>${%WaitingFor(item.inQueueForString)}
">
${item.task.fullDisplayName}
</a>
<j:if test="${stuck}">
...
...
core/src/main/resources/lib/layout/breadcrumbs.js
浏览文件 @
a2a398ed
...
...
@@ -67,6 +67,10 @@ var breadcrumbs = (function() {
}
/**
* Called when the mouse cursor comes into the context menu hot spot.
*
* If the mouse stays there for a while, a context menu gets displayed.
*
* @param {HTMLElement} e
* anchor tag
* @param {Number} delay
...
...
@@ -87,6 +91,7 @@ var breadcrumbs = (function() {
menu
.
addItems
(
items
);
menu
.
render
(
"
breadcrumb-menu-target
"
);
menu
.
show
();
$
(
menu
.
getItem
(
0
).
element
).
addClassName
(
"
yui-menuitem-tooltip
"
)
}
menuDelay
=
null
;
},
delay
);
...
...
@@ -108,6 +113,13 @@ var breadcrumbs = (function() {
e
.
subMenu
=
{
id
:
"
submenu
"
+
(
iota
++
),
itemdata
:
e
.
subMenu
.
items
.
each
(
fillMenuItem
)};
}
a
.
each
(
fillMenuItem
);
var
tooltip
=
e
.
getAttribute
(
'
tooltip
'
);
if
(
tooltip
)
{
// join the tooltip into the context menu. color #000 to cancel out the text effect on disabled menu items
a
.
unshift
({
text
:
"
<div class='yui-menu-tooltip'>
"
+
tooltip
+
"
</div>
"
,
disabled
:
true
})
}
e
.
items
=
function
()
{
return
a
};
showMenu
(
a
);
}
...
...
war/src/main/webapp/css/style.css
浏览文件 @
a2a398ed
...
...
@@ -867,6 +867,17 @@ DIV.yahooTree td {
border
:
none
!important
;
background-color
:
#FFF
!important
;
}
.yuimenu
LI
.yui-menu-tooltip
{
color
:
#A6A6A6
;
}
.yuimenu
LI
.yui-menuitem-tooltip
{
border-bottom
:
1px
solid
#808080
;
padding-bottom
:
3px
;
margin-bottom
:
1em
;
}
/* ========================= search box at the top-right of the page ========================= */
#search-box
{
background
:
white
url(../images/16x16/search.gif)
no-repeat
2px
center
;
...
...
war/src/main/webapp/scripts/hudson-behavior.js
浏览文件 @
a2a398ed
...
...
@@ -1183,6 +1183,8 @@ var hudsonRules = jenkinsRules; // legacy name
Behaviour
.
register
(
hudsonRules
);
function
applyTooltip
(
e
,
text
)
{
if
(
e
.
hasClassName
(
"
model-link
"
))
return
;
// tooltip gets handled by context menu
// copied from YAHOO.widget.Tooltip.prototype.configContext to efficiently add a new element
// event registration via YAHOO.util.Event.addListener leaks memory, so do it by ourselves here
e
.
onmouseover
=
function
(
ev
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录