(refs #632) Revert. And remove all checked checkbox.

This commit is contained in:
shimamoto
2015-03-02 01:21:11 +09:00
parent c004d501f6
commit 9019d93449
2 changed files with 1 additions and 9 deletions

View File

@@ -48,17 +48,10 @@ $(function(){
});
$('.table-issues input[type=checkbox]').change(function(){
var count = $('.table-issues input[type=checkbox]').filter(':checked').length;
if(count == 0){
if($('.table-issues input[type=checkbox]').filter(':checked').length == 0){
$('#table-issues-control').show();
$('#table-issues-batchedit').hide();
} else {
if($(this).val() == 'all'){
var flag = $(this).is(":checked");
$('.table-issues input[type=checkbox]').each(function(){
$(this).prop("checked", flag);
});
}
$('#table-issues-control').hide();
$('#table-issues-batchedit').show();
}

View File

@@ -25,7 +25,6 @@
<table class="table table-bordered table-hover table-issues">
<tr>
<th style="background-color: #eee;">
<input type="checkbox" value="all"/>
<span class="small">
<a class="button-link@if(condition.state == "open"){ selected}" href="@condition.copy(state = "open").toURL">
<img src="@assets/common/images/status-open@(if(condition.state == "open"){"-active"}).png"/>