Skip to content

Commit

Permalink
commit df9c6c62344b4d8153b4822b766701a79a749d03
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ssogabe committed Sep 12, 2011
1 parent d386f03 commit 1d967ed
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
4 changes: 3 additions & 1 deletion changelog.html
Expand Up @@ -55,7 +55,9 @@
<!-- 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=-->

Expand Down
Expand Up @@ -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>
Expand Down Expand Up @@ -142,14 +145,25 @@ 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);
return false;
}
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>
Expand Down
Expand Up @@ -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
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
Binary file added war/src/main/webapp/images/16x16/edit-select-all.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added war/src/main/webapp/images/16x16/edit-select-all.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1d967ed

Please sign in to comment.