Skip to content

Commit

Permalink
changed checkbox js (publiclab#7471)
Browse files Browse the repository at this point in the history
  • Loading branch information
keshavsethi authored Feb 12, 2020
1 parent eaf1dd0 commit ce4b032
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/views/admin/_nodes.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

<script>
(function(){
$('input[type=checkbox]#batch-checkbox').bind('click',function(e) {
if ($('#batch-checkbox')[0].checked) $('.batch-checkbox').attr('checked','checked')
else $('.batch-checkbox').attr('checked',false)
})
$('#batch-checkbox').click(function () {
$('.batch-checkbox').prop('checked', this.checked);
});
$('#batch-delete').bind('click',function(e) {
vals = []
alert_error('The mass spam button is disabled pending resolution of <a href="https://github.com/jywarren/plots2/issues/184">ticket #184</a>.')
Expand Down

0 comments on commit ce4b032

Please sign in to comment.