Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FIY695
jenkins
提交
4c92e2ac
J
jenkins
项目概览
FIY695
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
提交
4c92e2ac
编写于
4月 17, 2012
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added the filter textbox to the update center selector.
上级
246be7ca
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
58 addition
and
27 deletion
+58
-27
changelog.html
changelog.html
+2
-1
core/src/main/resources/hudson/PluginManager/_table.css
core/src/main/resources/hudson/PluginManager/_table.css
+10
-0
core/src/main/resources/hudson/PluginManager/_table.js
core/src/main/resources/hudson/PluginManager/_table.js
+38
-0
core/src/main/resources/hudson/PluginManager/table.jelly
core/src/main/resources/hudson/PluginManager/table.jelly
+8
-26
未找到文件。
changelog.html
浏览文件 @
4c92e2ac
...
...
@@ -55,7 +55,8 @@ Upcoming changes</a>
<!-- Record your changes in the trunk here. -->
<div
id=
"trunk"
style=
"display:none"
>
<!--=TRUNK-BEGIN=-->
<ul
class=
image
>
<li
class=
>
<li
class=
rfe
>
Added the filter textbox to the update center selector.
</ul>
</div>
<!--=TRUNK-END=-->
...
...
core/src/main/resources/hudson/PluginManager/_table.css
0 → 100644
浏览文件 @
4c92e2ac
#filter-box
{
background
:
white
url('/images/16x16/search.gif')
no-repeat
2px
center
;
padding-left
:
20px
;
width
:
15em
;
}
#filter-container
{
margin
:
1em
;
text-align
:
right
;
}
core/src/main/resources/hudson/PluginManager/_table.js
0 → 100644
浏览文件 @
4c92e2ac
function
showhideCategories
(
hdr
,
on
)
{
var
table
=
hdr
.
parentNode
.
parentNode
.
parentNode
,
newDisplay
=
on
?
''
:
'
none
'
,
nameList
=
new
Array
(),
name
;
for
(
var
i
=
1
;
i
<
table
.
rows
.
length
;
i
++
)
{
if
(
on
||
table
.
rows
[
i
].
cells
.
length
==
1
)
table
.
rows
[
i
].
style
.
display
=
newDisplay
;
else
{
// Hide duplicate rows for a plugin when not viewing by-category
name
=
table
.
rows
[
i
].
cells
[
1
].
getAttribute
(
'
data
'
);
if
(
nameList
[
name
]
==
1
)
table
.
rows
[
i
].
style
.
display
=
'
none
'
;
nameList
[
name
]
=
1
;
}
}
}
function
showhideCategory
(
col
)
{
var
row
=
col
.
parentNode
.
nextSibling
;
var
newDisplay
=
row
&&
row
.
style
.
display
==
'
none
'
?
''
:
'
none
'
;
for
(;
row
&&
row
.
cells
.
length
>
1
;
row
=
row
.
nextSibling
)
row
.
style
.
display
=
newDisplay
;
}
Behaviour
.
register
({
"
#filter-box
"
:
function
(
e
)
{
function
applyFilter
()
{
var
filter
=
e
.
value
.
toLowerCase
();
[
"
TR.plugin
"
,
"
TR.plugin-category
"
].
each
(
function
(
clz
)
{
var
items
=
document
.
getElementsBySelector
(
clz
);
for
(
var
i
=
0
;
i
<
items
.
length
;
i
++
)
{
var
visible
=
(
filter
==
""
||
items
[
i
].
innerHTML
.
toLowerCase
().
indexOf
(
filter
)
>=
0
);
items
[
i
].
style
.
display
=
(
visible
?
""
:
"
none
"
);
}
});
}
e
.
onkeyup
=
applyFilter
;
}
});
core/src/main/resources/hudson/PluginManager/table.jelly
浏览文件 @
4c92e2ac
...
...
@@ -34,31 +34,13 @@ THE SOFTWARE.
<l:layout title="${%Update Center}" permission="${app.ADMINISTER}" norefresh="true">
<st:include page="sidepanel.jelly"/>
<l:main-panel>
<script type="text/javascript">// <![CDATA[
function showhideCategories(hdr,on) {
var table = hdr.parentNode.parentNode.parentNode,
newDisplay = on ? '' : 'none',
nameList = new Array(), name;
for (var i = 1; i < table.rows.length; i++) {
if (on || table.rows[i].cells.length == 1)
table.rows[i].style.display = newDisplay;
else {
// Hide duplicate rows for a plugin when not viewing by-category
name = table.rows[i].cells[1].getAttribute('data');
if (nameList[name] == 1) table.rows[i].style.display = 'none';
nameList[name] = 1;
}
}
}
function showhideCategory(col) {
var row = col.parentNode.nextSibling;
var newDisplay = row && row.style.display == 'none' ? '' : 'none';
for (; row && row.cells.length > 1; row = row.nextSibling)
row.style.display = newDisplay;
}
// ]]>
</script>
<st:adjunct includes="hudson.PluginManager._table"/>
<form method="post" action="install">
<div id="filter-container">
${%Filter}:
<input type="text" id="filter-box"/>
</div>
<j:set var="isUpdates" value="${attrs.page=='updates'}" />
<local:tabBar page="${attrs.page}" xmlns:local="/hudson/PluginManager" />
<table id="plugins" class="sortable pane bigtable">
...
...
@@ -79,7 +61,7 @@ THE SOFTWARE.
<j:set var="thisCat" value="${p.category}" />
<j:set var="p" value="${p.plugin}" />
<j:if test="${thisCat != lastCat}">
<tr>
<tr
class="plugin-category" name="${thisCat}"
>
<td class="pane" colspan="4" onclick="showhideCategory(this)">${thisCat}</td>
</tr>
</j:if>
...
...
@@ -88,7 +70,7 @@ THE SOFTWARE.
<j:set var="installJob" value="${isUpdates ? app.updateCenter.getJob(p) : null}" />
<j:set var="installedOk"
value="${installJob.status.success and installJob.plugin.version==p.version}" />
<tr class="${installJob!=null ? 'already-upgraded' :
null
}">
<tr class="${installJob!=null ? 'already-upgraded' :
''} plugin" name="${p.displayName
}">
<td class="pane" align="center" data="${thisCat}_">
<input type="checkbox" name="plugin.${p.name}.${p.sourceId}"
checked="${installedOk ? 'checked' : null}"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录