提交 1d967ed2 编写于 作者: S Seiji Sogabe

commit df9c6c62344b4d8153b4822b766701a79a749d03

Author: Seiji Sogabe <s.sogabe@gmail.com>
Date:   Mon Sep 12 19:59:13 2011 +0900

    added changelog for JENKINS-7565.

commit c48915c27e87c1eabf2d0f70c8d423d4d8a8f40e
Author: OHTAKE Tomohiro <ohtake.tomohiro@jp.fujitsu.com>
Date:   Thu Sep 8 20:06:38 2011 +0900

    [JENKINS-7565] Add "un/check all" buttons on matrix-based security
上级 d386f03a
......@@ -55,7 +55,9 @@ 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>
Add "un/check all" buttons on matrix-based security.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-7565">issue 7565</a>)
</ul>
</div><!--=TRUNK-END=-->
......
......@@ -38,10 +38,13 @@ THE SOFTWARE.
</j:if>
</j:forEach>
</j:forEach>
<td class="stop">
<td class="stop" style="text-align:left;">
<a href="#" class="toggleall">
<img alt="${%Toggle all}" src="${imagesURL}/16x16/edit-select-all.png" height="16" width="16"/>
</a>
<j:if test="${attrs.sid!='anonymous'}">
<a href="#">
<img alt="remove" src="${imagesURL}/16x16/stop.png" height="16" width="16"/>
<a href="#" class="remove">
<img alt="${%Remove user/group}" src="${imagesURL}/16x16/stop.png" height="16" width="16"/>
</a>
</j:if>
</td>
......@@ -142,7 +145,7 @@ THE SOFTWARE.
})();
Behaviour.register({
"#${strategyid} TD.stop A" : function(e) {
"#${strategyid} TD.stop A.remove" : function(e) {
e.onclick = function() {
var tr = findAncestor(this,"TR");
tr.parentNode.removeChild(tr);
......@@ -150,6 +153,17 @@ THE SOFTWARE.
}
e = null; <!-- avoid memory leak -->
},
"#${strategyid} TD.stop A.toggleall" : function(e) {
e.onclick = function() {
var tr = findAncestor(this,"TR");
var inputs = tr.getElementsByTagName("INPUT");
for(var i=0; i&lt;inputs.length; i++){
if(inputs[i].type == "checkbox") inputs[i].checked = !inputs[i].checked;
}
return false;
};
e = null; <!-- avoid memory leak -->
},
<j:if test="${empty(descriptorPath)}">
<j:set var="descriptorPath" value="${descriptor.descriptorFullUrl}"/>
</j:if>
......
......@@ -23,4 +23,7 @@
Add=\u8ffd\u52a0
Anonymous=\u533f\u540d\u30e6\u30fc\u30b6\u30fc
User/group=\u30e6\u30fc\u30b6\u30fc/\u30b0\u30eb\u30fc\u30d7
User/group\ to\ add=\u8ffd\u52a0\u3059\u308b\u30e6\u30fc\u30b6\u30fc/\u30b0\u30eb\u30fc\u30d7
\ No newline at end of file
User/group\ to\ add=\u8ffd\u52a0\u3059\u308b\u30e6\u30fc\u30b6\u30fc/\u30b0\u30eb\u30fc\u30d7
Toggle\ all=\u3059\u3079\u3066\u53cd\u8ee2
Remove\ user\/group=\u30e6\u30fc\u30b6/\u30b0\u30eb\u30fc\u30d7\u3092\u9664\u53bb
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册